From 73fda2cb86d81235bac37808efaf3599ea7e2aed Mon Sep 17 00:00:00 2001 From: frederic34 Date: Tue, 6 Jan 2015 17:54:36 +0100 Subject: [PATCH] WIP PSR2 --- dev/codesniffer/ruleset.xml | 146 +++--- dev/translation/autotranslator.class.php | 14 +- htdocs/admin/tools/eaccelerator.php | 478 +++++++++--------- htdocs/compta/localtax/index.php | 129 ++--- htdocs/core/boxes/box_project.php | 81 +-- htdocs/core/boxes/box_task.php | 82 +-- .../connectors/php/commands.php | 7 + .../core/filemanagerdol/connectors/php/io.php | 73 ++- htdocs/core/modules/syslog/logHandler.php | 15 + .../modules/syslog/logHandlerInterface.php | 21 + htdocs/product/index.php | 8 +- .../stock/class/mouvementstock.class.php | 9 +- htdocs/resource/class/resource.class.php | 20 +- test/phpunit/AdherentTest.php | 364 ++++++------- test/phpunit/AdminLibTest.php | 151 +++--- test/phpunit/AllTests.php | 91 ++-- test/phpunit/BankAccountTest.php | 197 ++++---- test/phpunit/BuildDocTest.php | 249 ++++----- test/phpunit/CMailFileTest.php | 131 ++--- test/phpunit/CategorieTest.php | 325 ++++++------ test/phpunit/ChargeSocialesTest.php | 2 + test/phpunit/CommandeFournisseurTest.php | 339 ++++++------- test/phpunit/CommandeTest.php | 242 ++++----- test/phpunit/CommonObjectTest.php | 191 +++---- test/phpunit/CompanyBankAccountTest.php | 2 + test/phpunit/ContactTest.php | 2 + test/phpunit/ContratTest.php | 2 + test/phpunit/CoreTest.php | 391 +++++++------- test/phpunit/DateLibTest.php | 2 + test/phpunit/DateLibTzFranceTest.php | 2 + test/phpunit/DiscountTest.php | 2 + test/phpunit/EntrepotTest.php | 2 + test/phpunit/ExportTest.php | 2 + test/phpunit/FactureFournisseurTest.php | 2 + test/phpunit/FactureRecTest.php | 2 + test/phpunit/FactureTest.php | 265 +++++----- test/phpunit/FactureTestRounding.php | 2 + test/phpunit/FichinterTest.php | 2 + test/phpunit/FilesLibTest.php | 2 + test/phpunit/FormAdminTest.php | 2 + test/phpunit/Functions2LibTest.php | 2 + test/phpunit/FunctionsLibTest.php | 2 + test/phpunit/HolidayTest.php | 2 + test/phpunit/ImagesLibTest.php | 2 + test/phpunit/ImportTest.php | 2 + test/phpunit/JsonLibTest.php | 2 + test/phpunit/LangTest.php | 2 + test/phpunit/MarginsLibTest.php | 2 + test/phpunit/ModulesTest.php | 2 + test/phpunit/NumberingModulesTest.php | 2 + test/phpunit/PaypalTest.php | 2 + test/phpunit/PdfDocTest.php | 2 + test/phpunit/PgsqlTest.php | 2 + test/phpunit/PricesTest.php | 2 + test/phpunit/ProductTest.php | 233 ++++----- test/phpunit/ProjectTest.php | 2 + test/phpunit/PropalTest.php | 2 + test/phpunit/ScriptsTest.php | 2 + test/phpunit/SecurityTest.php | 2 + test/phpunit/SocieteTest.php | 331 ++++++------ test/phpunit/SqlTest.php | 191 +++---- test/phpunit/UserGroupTest.php | 269 +++++----- test/phpunit/UserTest.php | 312 ++++++------ test/phpunit/WebservicesInvoicesTest.php | 208 ++++---- test/phpunit/WebservicesOrdersTest.php | 206 ++++---- test/phpunit/WebservicesOtherTest.php | 262 +++++----- test/phpunit/WebservicesProductsTest.php | 414 ++++++++------- test/phpunit/WebservicesThirdpartyTest.php | 207 ++++---- test/phpunit/WebservicesUserTest.php | 260 +++++----- test/phpunit/XCalLibTest.php | 157 +++--- 70 files changed, 3612 insertions(+), 3523 deletions(-) diff --git a/dev/codesniffer/ruleset.xml b/dev/codesniffer/ruleset.xml index b121027ad10..49af678ccff 100755 --- a/dev/codesniffer/ruleset.xml +++ b/dev/codesniffer/ruleset.xml @@ -175,23 +175,68 @@ - + - + - - 0 - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 0 + 0 @@ -201,94 +246,21 @@ 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 - - + + + + + + + +