Skip to content

Commit

Permalink
ADD option text pref
Browse files Browse the repository at this point in the history
  • Loading branch information
tomitomas committed Aug 27, 2024
1 parent 9af67cd commit 0f16fa9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/tomitomasEqLogicTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,17 +158,23 @@ public static function executeAsync(string $_method, $_option = null, $_date = '
}
}

public static function getConfigForCommunity() {
public static function getConfigForCommunity($withQuote = true) {

$infoPlugin = '<b>Version OS</b> : ' . system::getDistrib() . ' ' . system::getOsVersion() . '<br/>';

$infoPlugin .= '<b>Version PHP</b> : ' . phpversion();

$infoPlugin = '<br/>```<br/>' . str_replace(array('<b>', '</b>', '&nbsp;'), array('', '', ' '), $infoPlugin) . '<br/>```<br/>';
if ($withQuote) {
return self::getPreformattedText($infoPlugin);
}

return $infoPlugin;
}

public static function getPreformattedText($string) {
return '<br/>```text<br/>' . str_replace(array('<b>', '</b>', '&nbsp;'), array('', '', ' '), $string) . '<br/>```<br/>';
}

/**
******************** LOGS FUNCTIONS
*/
Expand Down

0 comments on commit 0f16fa9

Please sign in to comment.