From 0ea079d604ef1f34cc47646ab23176a3c66f16ee Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Mon, 13 Oct 2014 14:41:55 +0200 Subject: dirname(__FILE__) -> __DIR__ --- plugins/acl/tests/Acl.php | 2 +- .../additional_message_headers/tests/AdditionalMessageHeaders.php | 2 +- plugins/archive/tests/Archive.php | 2 +- plugins/autologon/tests/Autologon.php | 2 +- plugins/database_attachments/tests/DatabaseAttachments.php | 2 +- plugins/debug_logger/debug_logger.php | 8 ++++---- plugins/debug_logger/tests/DebugLogger.php | 2 +- plugins/emoticons/tests/Emoticons.php | 2 +- plugins/enigma/tests/Enigma.php | 2 +- plugins/example_addressbook/example_addressbook.php | 2 +- plugins/example_addressbook/tests/ExampleAddressbook.php | 2 +- plugins/filesystem_attachments/tests/FilesystemAttachments.php | 2 +- plugins/help/tests/Help.php | 2 +- plugins/hide_blockquote/tests/HideBlockquote.php | 2 +- plugins/http_authentication/tests/HttpAuthentication.php | 2 +- plugins/identity_select/tests/IdentitySelect.php | 2 +- plugins/jqueryui/tests/Jqueryui.php | 2 +- plugins/legacy_browser/tests/LegacyBrowser.php | 2 +- plugins/managesieve/tests/Managesieve.php | 2 +- plugins/managesieve/tests/Parser.php | 4 ++-- plugins/managesieve/tests/Tokenizer.php | 2 +- plugins/managesieve/tests/Vacation.php | 4 ++-- plugins/markasjunk/tests/Markasjunk.php | 2 +- plugins/new_user_dialog/tests/NewUserDialog.php | 2 +- plugins/new_user_identity/tests/NewUserIdentity.php | 2 +- plugins/newmail_notifier/tests/NewmailNotifier.php | 2 +- plugins/password/tests/Password.php | 2 +- plugins/redundant_attachments/tests/RedundantAttachments.php | 2 +- plugins/show_additional_headers/tests/ShowAdditionalHeaders.php | 2 +- plugins/squirrelmail_usercopy/tests/SquirrelmailUsercopy.php | 2 +- plugins/subscriptions_option/tests/SubscriptionsOption.php | 2 +- plugins/userinfo/tests/Userinfo.php | 2 +- plugins/vcard_attachments/tests/VcardAttachments.php | 2 +- plugins/virtuser_file/tests/VirtuserFile.php | 2 +- plugins/virtuser_query/tests/VirtuserQuery.php | 2 +- plugins/zipdownload/tests/Zipdownload.php | 2 +- 36 files changed, 41 insertions(+), 41 deletions(-) (limited to 'plugins') diff --git a/plugins/acl/tests/Acl.php b/plugins/acl/tests/Acl.php index e752ac977..56ae3b5bb 100644 --- a/plugins/acl/tests/Acl.php +++ b/plugins/acl/tests/Acl.php @@ -5,7 +5,7 @@ class Acl_Plugin extends PHPUnit_Framework_TestCase function setUp() { - include_once dirname(__FILE__) . '/../acl.php'; + include_once __DIR__ . '/../acl.php'; } /** diff --git a/plugins/additional_message_headers/tests/AdditionalMessageHeaders.php b/plugins/additional_message_headers/tests/AdditionalMessageHeaders.php index 1c54ffc42..55e8c441e 100644 --- a/plugins/additional_message_headers/tests/AdditionalMessageHeaders.php +++ b/plugins/additional_message_headers/tests/AdditionalMessageHeaders.php @@ -5,7 +5,7 @@ class AdditionalMessageHeaders_Plugin extends PHPUnit_Framework_TestCase function setUp() { - include_once dirname(__FILE__) . '/../additional_message_headers.php'; + include_once __DIR__ . '/../additional_message_headers.php'; } /** diff --git a/plugins/archive/tests/Archive.php b/plugins/archive/tests/Archive.php index 0a1eeae11..17fcdf7a1 100644 --- a/plugins/archive/tests/Archive.php +++ b/plugins/archive/tests/Archive.php @@ -5,7 +5,7 @@ class Archive_Plugin extends PHPUnit_Framework_TestCase function setUp() { - include_once dirname(__FILE__) . '/../archive.php'; + include_once __DIR__ . '/../archive.php'; } /** diff --git a/plugins/autologon/tests/Autologon.php b/plugins/autologon/tests/Autologon.php index 0de193e4a..f3f6b4206 100644 --- a/plugins/autologon/tests/Autologon.php +++ b/plugins/autologon/tests/Autologon.php @@ -5,7 +5,7 @@ class Autologon_Plugin extends PHPUnit_Framework_TestCase function setUp() { - include_once dirname(__FILE__) . '/../autologon.php'; + include_once __DIR__ . '/../autologon.php'; } /** diff --git a/plugins/database_attachments/tests/DatabaseAttachments.php b/plugins/database_attachments/tests/DatabaseAttachments.php index f260737ab..15ea5f44e 100644 --- a/plugins/database_attachments/tests/DatabaseAttachments.php +++ b/plugins/database_attachments/tests/DatabaseAttachments.php @@ -5,7 +5,7 @@ class DatabaseAttachments_Plugin extends PHPUnit_Framework_TestCase function setUp() { - include_once dirname(__FILE__) . '/../database_attachments.php'; + include_once __DIR__ . '/../database_attachments.php'; } /** diff --git a/plugins/debug_logger/debug_logger.php b/plugins/debug_logger/debug_logger.php index 88237d767..07190e5a1 100644 --- a/plugins/debug_logger/debug_logger.php +++ b/plugins/debug_logger/debug_logger.php @@ -66,8 +66,8 @@ class debug_logger extends rcube_plugin { function init() { - require_once(dirname(__FILE__).'/runlog/runlog.php'); - $this->runlog = new runlog(); + require_once(__DIR__ . '/runlog/runlog.php'); + $this->runlog = new runlog(); if(!rcmail::get_instance()->config->get('log_dir')){ rcmail::get_instance()->config->set('log_dir',INSTALL_PATH.'logs'); @@ -83,10 +83,10 @@ class debug_logger extends rcube_plugin $action = rcmail::get_instance()->action; $task = rcmail::get_instance()->task; if($action){ - $start_string .= "Action: ".$action.". "; + $start_string .= "Action: ".$action.". "; } if($task){ - $start_string .= "Task: ".$task.". "; + $start_string .= "Task: ".$task.". "; } $this->runlog->start($start_string); diff --git a/plugins/debug_logger/tests/DebugLogger.php b/plugins/debug_logger/tests/DebugLogger.php index de20a069d..8dd0c03fe 100644 --- a/plugins/debug_logger/tests/DebugLogger.php +++ b/plugins/debug_logger/tests/DebugLogger.php @@ -5,7 +5,7 @@ class DebugLogger_Plugin extends PHPUnit_Framework_TestCase function setUp() { - include_once dirname(__FILE__) . '/../debug_logger.php'; + include_once __DIR__ . '/../debug_logger.php'; } /** diff --git a/plugins/emoticons/tests/Emoticons.php b/plugins/emoticons/tests/Emoticons.php index 4b6c303c2..e04502285 100644 --- a/plugins/emoticons/tests/Emoticons.php +++ b/plugins/emoticons/tests/Emoticons.php @@ -5,7 +5,7 @@ class Emoticons_Plugin extends PHPUnit_Framework_TestCase function setUp() { - include_once dirname(__FILE__) . '/../emoticons.php'; + include_once __DIR__ . '/../emoticons.php'; } /** diff --git a/plugins/enigma/tests/Enigma.php b/plugins/enigma/tests/Enigma.php index 0d0d8f8ae..3972694fc 100644 --- a/plugins/enigma/tests/Enigma.php +++ b/plugins/enigma/tests/Enigma.php @@ -5,7 +5,7 @@ class Enigma_Plugin extends PHPUnit_Framework_TestCase function setUp() { - include_once dirname(__FILE__) . '/../enigma.php'; + include_once __DIR__ . '/../enigma.php'; } /** diff --git a/plugins/example_addressbook/example_addressbook.php b/plugins/example_addressbook/example_addressbook.php index 31077adf7..22e230c6f 100644 --- a/plugins/example_addressbook/example_addressbook.php +++ b/plugins/example_addressbook/example_addressbook.php @@ -1,6 +1,6 @@