Failed Conditions
Pull Request — psr2 (#2426)
by Andreas
09:22 queued 06:07
created

inc/deprecated.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
// phpcs:ignoreFile -- this file violates PSR2 by definition
3
/**
4
 * These classes and functions are deprecated and will be removed in future releases
5
 */
6
7
/**
8
 * @inheritdoc
9
 * @deprecated 2018-05-07
10
 */
11
class RemoteAccessDeniedException extends \dokuwiki\Remote\AccessDeniedException {
12
    /** @inheritdoc */
13
    public function __construct($message = "", $code = 0, Throwable $previous = null) {
14
        dbg_deprecated(\dokuwiki\Remote\AccessDeniedException::class);
15
        parent::__construct($message, $code, $previous);
16
    }
17
18
}
19
20
/**
21
 * @inheritdoc
22
 * @deprecated 2018-05-07
23
 */
24
class RemoteException extends \dokuwiki\Remote\RemoteException {
25
    /** @inheritdoc */
26
    public function __construct($message = "", $code = 0, Throwable $previous = null) {
27
        dbg_deprecated(\dokuwiki\Remote\RemoteException::class);
28
        parent::__construct($message, $code, $previous);
29
    }
30
31
}
32
33
/**
34
 * Escapes regex characters other than (, ) and /
35
 *
36
 * @param string $str
37
 * @return string
38
 * @deprecated 2018-05-04
39
 */
40
function Doku_Lexer_Escape($str) {
41
    dbg_deprecated('\\dokuwiki\\Parsing\\Lexer\\Lexer::escape()');
42
    return \dokuwiki\Parsing\Lexer\Lexer::escape($str);
43
}
44
45
/**
46
 * @inheritdoc
47
 * @deprecated 2018-06-01
48
 */
49
class setting extends \dokuwiki\plugin\config\core\Setting\Setting {
50
    /** @inheritdoc */
51
    public function __construct($key, array $params = null) {
52
        dbg_deprecated(\dokuwiki\plugin\config\core\Setting\Setting::class);
53
        parent::__construct($key, $params);
54
    }
55
}
56
57
/**
58
 * @inheritdoc
59
 * @deprecated 2018-06-01
60
 */
61
class setting_authtype extends \dokuwiki\plugin\config\core\Setting\SettingAuthtype {
62
    /** @inheritdoc */
63
    public function __construct($key, array $params = null) {
64
        dbg_deprecated(\dokuwiki\plugin\config\core\Setting\SettingAuthtype::class);
65
        parent::__construct($key, $params);
66
    }
67
}
68
69
/**
70
 * @inheritdoc
71
 * @deprecated 2018-06-01
72
 */
73
class setting_string extends \dokuwiki\plugin\config\core\Setting\SettingString {
74
    /** @inheritdoc */
75
    public function __construct($key, array $params = null) {
76
        dbg_deprecated(\dokuwiki\plugin\config\core\Setting\SettingString::class);
77
        parent::__construct($key, $params);
78
    }
79
}
80
81
/**
82
 * @inheritdoc
83
 * @deprecated 2018-06-15
84
 */
85
class PageChangelog extends \dokuwiki\ChangeLog\PageChangeLog {
86
    /** @inheritdoc */
87
    public function __construct($id, $chunk_size = 8192)
88
    {
89
        dbg_deprecated(\dokuwiki\ChangeLog\PageChangeLog::class);
90
        parent::__construct($id, $chunk_size);
91
    }
92
}
93
94
/**
95
 * @inheritdoc
96
 * @deprecated 2018-06-15
97
 */
98
class MediaChangelog extends \dokuwiki\ChangeLog\MediaChangeLog {
99
    /** @inheritdoc */
100
    public function __construct($id, $chunk_size = 8192)
101
    {
102
        dbg_deprecated(\dokuwiki\ChangeLog\MediaChangeLog::class);
103
        parent::__construct($id, $chunk_size);
104
    }
105
}
106
107
/**
108
 * function wrapper to process (create, trigger and destroy) an event
109
 *
110
 * @param  string   $name               name for the event
111
 * @param  mixed    $data               event data
112
 * @param  callback $action             (optional, default=NULL) default action, a php callback function
113
 * @param  bool     $canPreventDefault  (optional, default=true) can hooks prevent the default action
114
 *
115
 * @return mixed                        the event results value after all event processing is complete
116
 *                                      by default this is the return value of the default action however
117
 *                                      it can be set or modified by event handler hooks
118
 * @deprecated 2018-06-15
119
 */
120
function trigger_event($name, &$data, $action=null, $canPreventDefault=true) {
121
    dbg_deprecated('\dokuwiki\Extension\Event::createAndTrigger');
122
    return \dokuwiki\Extension\Event::createAndTrigger($name, $data, $action, $canPreventDefault);
123
}
124
125
/**
126
 * @inheritdoc
127
 * @deprecated 2018-06-15
128
 */
129
class Doku_Plugin_Controller extends \dokuwiki\Extension\PluginController {
130
    /** @inheritdoc */
131
    public function __construct()
132
    {
133
        dbg_deprecated(\dokuwiki\Extension\PluginController::class);
134
        parent::__construct();
0 ignored issues
show
Deprecated Code introduced by
The method dokuwiki\Extension\PluginController::__construct() has been deprecated with message: 2018-06-16 This constructor will be made private

This method has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.

Loading history...
135
    }
136
}
137