File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -76,10 +76,10 @@ protected function getToken(?string $action = null) : string
76
76
/**
77
77
* Get language.
78
78
*
79
- * @access protected
79
+ * @access public
80
80
* @return string
81
81
*/
82
- protected function getLanguage () : string
82
+ public function getLanguage () : string
83
83
{
84
84
if ( $ this ->hasRequest ('--lang ' ) ) {
85
85
return $ this ->getRequest ('--lang ' );
@@ -94,11 +94,11 @@ protected function getLanguage() : string
94
94
* Translate string,
95
95
* May require quotes escaping.
96
96
*
97
- * @access protected
97
+ * @access public
98
98
* @param string $string
99
99
* @return string
100
100
*/
101
- protected function translate (string $ string ) : string
101
+ public function translate (string $ string ) : string
102
102
{
103
103
if ( $ string ) {
104
104
$ lang = $ this ->getLanguage ();
@@ -111,11 +111,11 @@ protected function translate(string $string) : string
111
111
/**
112
112
* Translate array of strings.
113
113
*
114
- * @access protected
114
+ * @access public
115
115
* @param array $strings
116
116
* @return array
117
117
*/
118
- protected function translateArray (array $ strings = []) : array
118
+ public function translateArray (array $ strings = []) : array
119
119
{
120
120
foreach ($ strings as $ key => $ value ) {
121
121
$ strings [$ key ] = $ this ->translate ($ value );
You can’t perform that action at this time.
0 commit comments