Statically used methods should be defined statically as well
This commit is contained in:
parent
959d6ae15e
commit
b0c26921ad
6 changed files with 49 additions and 49 deletions
|
|
@ -187,11 +187,11 @@ class Smilies {
|
|||
return $s;
|
||||
}
|
||||
|
||||
private function encode($m) {
|
||||
private static function encode($m) {
|
||||
return(str_replace($m[1],base64url_encode($m[1]),$m[0]));
|
||||
}
|
||||
|
||||
private function decode($m) {
|
||||
private static function decode($m) {
|
||||
return(str_replace($m[1],base64url_decode($m[1]),$m[0]));
|
||||
}
|
||||
|
||||
|
|
@ -204,7 +204,7 @@ class Smilies {
|
|||
*
|
||||
* @todo: Rework because it doesn't work correctly
|
||||
*/
|
||||
private function preg_heart($x) {
|
||||
private static function preg_heart($x) {
|
||||
if(strlen($x[1]) == 1)
|
||||
return $x[0];
|
||||
$t = '';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue