Skip to content

Commit

Permalink
run fixer on PHP 8.3 to fix attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Nov 17, 2024
1 parent 221aab1 commit b042077
Show file tree
Hide file tree
Showing 166 changed files with 501 additions and 501 deletions.
2 changes: 1 addition & 1 deletion plugins/acl/acl.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class acl extends rcube_plugin
/**
* Plugin initialization
*/
#[Override]
#[\Override]
public function init()
{
$this->rc = rcmail::get_instance();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class additional_message_headers extends rcube_plugin
/**
* Plugin initialization
*/
#[Override]
#[\Override]
public function init()
{
$this->add_hook('message_before_send', [$this, 'message_headers']);
Expand Down
2 changes: 1 addition & 1 deletion plugins/archive/archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class archive extends rcube_plugin
/**
* Plugin initialization.
*/
#[Override]
#[\Override]
public function init()
{
$rcmail = rcmail::get_instance();
Expand Down
2 changes: 1 addition & 1 deletion plugins/attachment_reminder/attachment_reminder.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class attachment_reminder extends rcube_plugin
/**
* Plugin initialization
*/
#[Override]
#[\Override]
public function init()
{
$rcmail = rcmail::get_instance();
Expand Down
2 changes: 1 addition & 1 deletion plugins/autologon/autologon.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class autologon extends rcube_plugin
/**
* Plugin initialization
*/
#[Override]
#[\Override]
public function init()
{
$this->add_hook('startup', [$this, 'startup']);
Expand Down
2 changes: 1 addition & 1 deletion plugins/autologout/autologout.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class autologout extends rcube_plugin
/**
* Plugin initialization
*/
#[Override]
#[\Override]
public function init()
{
$this->add_hook('startup', [$this, 'startup']);
Expand Down
12 changes: 6 additions & 6 deletions plugins/database_attachments/database_attachments.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class database_attachments extends filesystem_attachments
/**
* Save a newly uploaded attachment
*/
#[Override]
#[\Override]
public function upload($args)
{
$args['status'] = false;
Expand Down Expand Up @@ -73,7 +73,7 @@ public function upload($args)
/**
* Save an attachment from a non-upload source (draft or forward)
*/
#[Override]
#[\Override]
public function save($args)
{
$args['status'] = false;
Expand Down Expand Up @@ -106,7 +106,7 @@ public function save($args)
* Remove an attachment from storage
* This is triggered by the remove attachment button on the compose screen
*/
#[Override]
#[\Override]
public function remove($args)
{
$cache = $this->get_cache();
Expand All @@ -122,7 +122,7 @@ public function remove($args)
* For this plugin, $this->get() will check the file and
* return it's contents
*/
#[Override]
#[\Override]
public function display($args)
{
return $this->get($args);
Expand All @@ -132,7 +132,7 @@ public function display($args)
* When displaying or sending the attachment the file contents are fetched
* using this method. This is also called by the attachment_display hook.
*/
#[Override]
#[\Override]
public function get($args)
{
$cache = $this->get_cache();
Expand All @@ -151,7 +151,7 @@ public function get($args)
/**
* Delete all temp files associated with this user
*/
#[Override]
#[\Override]
public function cleanup($args)
{
// check if cache object exist, it may be empty on session_destroy (#1489726)
Expand Down
2 changes: 1 addition & 1 deletion plugins/debug_logger/debug_logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class debug_logger extends rcube_plugin
{
protected $runlog;

#[Override]
#[\Override]
public function init()
{
require_once __DIR__ . '/runlog/runlog.php';
Expand Down
2 changes: 1 addition & 1 deletion plugins/emoticons/emoticons.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class emoticons extends rcube_plugin
/**
* Plugin initialization.
*/
#[Override]
#[\Override]
public function init()
{
$rcube = rcmail::get_instance();
Expand Down
2 changes: 1 addition & 1 deletion plugins/enigma/enigma.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class enigma extends rcube_plugin
/**
* Plugin initialization.
*/
#[Override]
#[\Override]
public function init()
{
$this->rc = rcmail::get_instance();
Expand Down
28 changes: 14 additions & 14 deletions plugins/enigma/lib/enigma_driver_gnupg.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class enigma_driver_gnupg extends enigma_driver
*
* @param rcube_user $user User object
*/
#[Override]
#[\Override]
public function __construct($user)
{
$this->rc = rcmail::get_instance();
Expand All @@ -54,7 +54,7 @@ public function __construct($user)
*
* @return enigma_error|null NULL on success, enigma_error on failure
*/
#[Override]
#[\Override]
public function init()
{
$homedir = $this->rc->config->get('enigma_pgp_homedir');
Expand Down Expand Up @@ -136,7 +136,7 @@ public function init()
*
* @return string|enigma_error Encrypted message or enigma_error on failure
*/
#[Override]
#[\Override]
public function encrypt($text, $keys, $sign_key = null)
{
try {
Expand Down Expand Up @@ -170,7 +170,7 @@ public function encrypt($text, $keys, $sign_key = null)
*
* @return mixed Decrypted message or enigma_error on failure
*/
#[Override]
#[\Override]
public function decrypt($text, $keys = [], &$signature = null)
{
try {
Expand Down Expand Up @@ -209,7 +209,7 @@ public function decrypt($text, $keys = [], &$signature = null)
*
* @return mixed True on success or enigma_error on failure
*/
#[Override]
#[\Override]
public function sign($text, $key, $mode = null)
{
try {
Expand All @@ -234,7 +234,7 @@ public function sign($text, $key, $mode = null)
*
* @return enigma_signature|enigma_error Signature information or enigma_error
*/
#[Override]
#[\Override]
public function verify($text, $signature)
{
try {
Expand All @@ -254,7 +254,7 @@ public function verify($text, $signature)
*
* @return mixed Import status array or enigma_error
*/
#[Override]
#[\Override]
public function import($content, $isfile = false, $passwords = [])
{
try {
Expand Down Expand Up @@ -286,7 +286,7 @@ public function import($content, $isfile = false, $passwords = [])
*
* @return string|enigma_error Key content or enigma_error
*/
#[Override]
#[\Override]
public function export($keyid, $with_private = false, $passwords = [])
{
try {
Expand Down Expand Up @@ -315,7 +315,7 @@ public function export($keyid, $with_private = false, $passwords = [])
*
* @return enigma_key[]|enigma_error Array of keys or enigma_error
*/
#[Override]
#[\Override]
public function list_keys($pattern = '')
{
try {
Expand All @@ -339,7 +339,7 @@ public function list_keys($pattern = '')
*
* @return enigma_key|enigma_error Key object or enigma_error
*/
#[Override]
#[\Override]
public function get_key($keyid)
{
$list = $this->list_keys($keyid);
Expand All @@ -359,7 +359,7 @@ public function get_key($keyid)
*
* @return mixed Key (enigma_key) object or enigma_error
*/
#[Override]
#[\Override]
public function gen_key($data)
{
try {
Expand Down Expand Up @@ -388,7 +388,7 @@ public function gen_key($data)
*
* @return mixed True on success or enigma_error
*/
#[Override]
#[\Override]
public function delete_key($keyid)
{
// delete public key
Expand Down Expand Up @@ -423,7 +423,7 @@ public function delete_key($keyid)
*
* @return string Hash algorithm name e.g. sha1
*/
#[Override]
#[\Override]
public function signature_algorithm()
{
return $this->last_sig_algorithm;
Expand All @@ -434,7 +434,7 @@ public function signature_algorithm()
*
* @return array Capabilities list
*/
#[Override]
#[\Override]
public function capabilities()
{
$caps = [enigma_driver::SUPPORT_RSA];
Expand Down
26 changes: 13 additions & 13 deletions plugins/enigma/lib/enigma_driver_phpssl.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class enigma_driver_phpssl extends enigma_driver
private $homedir; // @phpstan-ignore-line
private $user;

#[Override]
#[\Override]
public function __construct($user)
{
$rcmail = rcmail::get_instance();
Expand All @@ -39,7 +39,7 @@ public function __construct($user)
*
* @return enigma_error|null NULL on success, enigma_error on failure
*/
#[Override]
#[\Override]
public function init()
{
$homedir = $this->rc->config->get('enigma_smime_homedir', INSTALL_PATH . '/plugins/enigma/home');
Expand Down Expand Up @@ -80,25 +80,25 @@ public function init()
return null;
}

#[Override]
#[\Override]
public function encrypt($text, $keys, $sign_key = null)
{
return new enigma_error(enigma_error::INTERNAL, 'Not implemented');
}

#[Override]
#[\Override]
public function decrypt($text, $keys = [], &$signature = null)
{
return new enigma_error(enigma_error::INTERNAL, 'Not implemented');
}

#[Override]
#[\Override]
public function sign($text, $key, $mode = null)
{
return new enigma_error(enigma_error::INTERNAL, 'Not implemented');
}

#[Override]
#[\Override]
public function verify($struct, $message)
{
/*
Expand Down Expand Up @@ -142,37 +142,37 @@ public function verify($struct, $message)
return new enigma_error(enigma_error::INTERNAL, 'Not implemented');
}

#[Override]
#[\Override]
public function import($content, $isfile = false, $passwords = [])
{
return new enigma_error(enigma_error::INTERNAL, 'Not implemented');
}

#[Override]
#[\Override]
public function export($key, $with_private = false, $passwords = [])
{
return new enigma_error(enigma_error::INTERNAL, 'Not implemented');
}

#[Override]
#[\Override]
public function list_keys($pattern = '')
{
return new enigma_error(enigma_error::INTERNAL, 'Not implemented');
}

#[Override]
#[\Override]
public function get_key($keyid)
{
return new enigma_error(enigma_error::INTERNAL, 'Not implemented');
}

#[Override]
#[\Override]
public function gen_key($data)
{
return new enigma_error(enigma_error::INTERNAL, 'Not implemented');
}

#[Override]
#[\Override]
public function delete_key($keyid)
{
return new enigma_error(enigma_error::INTERNAL, 'Not implemented');
Expand All @@ -184,7 +184,7 @@ public function delete_key($keyid)
*
* @return string Hash algorithm name e.g. sha1
*/
#[Override]
#[\Override]
public function signature_algorithm()
{
return ''; // TODO
Expand Down
6 changes: 3 additions & 3 deletions plugins/enigma/lib/enigma_mime_message.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function __construct($message, $type)
*
* @return bool True if it is multipart, otherwise False
*/
#[Override]
#[\Override]
public function isMultipart()
{
return $this->message instanceof self
Expand Down Expand Up @@ -166,7 +166,7 @@ public function setPGPEncryptedBody($body)
*
* @return mixed The MIME message content string, null or PEAR error object
*/
#[Override]
#[\Override]
public function get($params = null, $filename = null, $skip_head = false)
{
if (!empty($params)) {
Expand Down Expand Up @@ -281,7 +281,7 @@ public function get($params = null, $filename = null, $skip_head = false)
*
* @return array Headers array
*/
#[Override]
#[\Override]
protected function contentHeaders()
{
$this->checkParams();
Expand Down
2 changes: 1 addition & 1 deletion plugins/example_addressbook/example_addressbook.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class example_addressbook extends rcube_plugin
private $abook_id = 'static';
private $abook_name = 'Static List';

#[Override]
#[\Override]
public function init()
{
$this->add_hook('addressbooks_list', [$this, 'address_sources']);
Expand Down
Loading

0 comments on commit b042077

Please sign in to comment.