src/Sbp/Plugins/Core/Constants.php
public static function otherConstants($content, $caller)
    {
        return array(
            '#'.constant($caller.'::START').'('.constant($caller.'::CONSTNAME').')\s*=#' => '$1const $2 =',
            '#\#('.constant($caller.'::CONSTNAME').')\s*=([^;]+);#' => 'define("$1",$2);',
            '#([\(;\s\.+/*=])~:('.constant($caller.'::CONSTNAME').')#' => '$1static::$2',
            '#([\(;\s\.+/*=]):('.constant($caller.'::CONSTNAME').')#' => '$1static::$2',
        );
    }
public static function otherConstants($content, $caller)
    {
        return array(
            '#'.constant($caller.'::START').'('.constant($caller.'::CONSTNAME').')\s*=#' => '$1const $2 =',
            '#\#('.constant($caller.'::CONSTNAME').')\s*=([^;]+);#' => 'define("$1",$2);',
            '#([\(;\s\.+/*=])~:('.constant($caller.'::CONSTNAME').')#' => '$1static::$2',
            '#([\(;\s\.+/*=]):('.constant($caller.'::CONSTNAME').')#' => '$1static::$2',
        );
    }
public static function otherConstants ( $ content , $ caller ) { return array ( '#' . constant ( $ caller . '::START' ) . '(' . constant ( $ caller . '::CONSTNAME' ) . ')\s*=#' => '$1const $2 =' , '#\#(' . constant ( $ caller . '::CONSTNAME' ) . ')\s*=([^;]+);#' => 'define("$1",$2);' , '#([\(;\s\.+/*=])~:(' . constant ( $ caller . '::CONSTNAME' ) . ')#' => '$1static::$2' , '#([\(;\s\.+/*=]):(' . constant ( $ caller . '::CONSTNAME' ) . ')#' => '$1static::$2' , ) ; }
*****************
*****************