Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291621

Stop use-ing Exception

$
0
0

Our coding standards state that we should not use classes in the global namespace, but I noticed today this is still all over the place for the Exception class. See http://drupal.org/node/1353118 and #1614186: [policy adopted, needs patch] Coding standards for using "native" PHP classes like stdClass in namespaced code.

Attached corrects this.

[tesla:drupal | Sun 07:19:25] $ grep -rl "use Exception" *
core/lib/Drupal/Component/Archiver/ArchiverException.php
core/lib/Drupal/Component/Archiver/ArchiveTar.php
core/lib/Drupal/Component/Plugin/Exception/ContextException.php
core/lib/Drupal/Component/Plugin/Exception/PluginException.php
core/lib/Drupal/Core/Config/DatabaseStorage.php
core/lib/Drupal/Core/Database/Driver/mysql/Schema.php
core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php
core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php
core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php
core/lib/Drupal/Core/Database/Driver/sqlite/Install/Tasks.php
core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php
core/lib/Drupal/Core/Database/Install/Tasks.php
core/lib/Drupal/Core/Database/Query/Insert.php
core/lib/Drupal/Core/Entity/EntityMalformedException.php
core/lib/Drupal/Core/Entity/EntityStorageException.php
core/lib/Drupal/Core/Executable/ExecutableException.php
core/lib/Drupal/Core/TypedData/MissingContextException.php
core/lib/Drupal/Core/TypedData/ReadOnlyException.php
core/lib/Drupal/Core/Updater/UpdaterException.php
core/lib/Drupal/Core/Utility/UpdateException.php
core/modules/field/lib/Drupal/field/Tests/CrudTest.php
core/modules/field_sql_storage/lib/Drupal/field_sql_storage/Tests/FieldSqlStorageTest.php
core/modules/locale/lib/Drupal/locale/Gettext.php
core/modules/locale/lib/Drupal/locale/StringStorageException.php
core/modules/node/lib/Drupal/node/Tests/NodeCreationTest.php
core/modules/node/lib/Drupal/node/Tests/NodeQueryAlterTest.php
core/modules/simpletest/lib/Drupal/simpletest/TestBase.php
core/modules/system/lib/Drupal/system/Tests/Database/InvalidDataTest.php
core/modules/system/lib/Drupal/system/Tests/Database/SchemaTest.php
core/modules/system/lib/Drupal/system/Tests/Database/TransactionTest.php
core/modules/system/lib/Drupal/system/Tests/Entity/EntityTranslationFormTest.php
core/modules/system/lib/Drupal/system/Tests/Plugin/AlterDecoratorTest.php
core/modules/system/lib/Drupal/system/Tests/Plugin/FactoryTest.php
core/modules/system/lib/Drupal/system/Tests/Routing/RouteProviderTest.php
core/modules/system/lib/Drupal/system/Tests/Upgrade/UpgradePathTestBase.php
AttachmentSizeStatusTest resultOperations
un-use-exception.patch32.04 KBIdlePASSED: [[SimpleTest]]: [MySQL] 55,581 pass(es).View details | Re-test

Viewing all articles
Browse latest Browse all 291621

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>