@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | /** |
| 59 | 59 | * Just a dummy for the time being. |
| 60 | 60 | */ |
| 61 | - public function __construct() |
|
| 61 | + public function __construct () |
|
| 62 | 62 | { |
| 63 | 63 | } |
| 64 | 64 | |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | * |
| 71 | 71 | * @param object $source The controller that instantiated the \ElkArte\EventManager |
| 72 | 72 | */ |
| 73 | - public function setSource($source) |
|
| 73 | + public function setSource ($source) |
|
| 74 | 74 | { |
| 75 | 75 | $this->_source = $source; |
| 76 | 76 | $this->_modules[0] = ['i' => $source, 'c' => '']; |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | * |
| 88 | 88 | * @return bool |
| 89 | 89 | */ |
| 90 | - public function trigger($partial_position, $args = array()) |
|
| 90 | + public function trigger ($partial_position, $args = array()) |
|
| 91 | 91 | { |
| 92 | 92 | if ($this->depth == 0) |
| 93 | 93 | { |
@@ -164,13 +164,13 @@ discard block |
||
| 164 | 164 | } |
| 165 | 165 | } |
| 166 | 166 | |
| 167 | - protected function pushModule($instance, $class_name) |
|
| 167 | + protected function pushModule ($instance, $class_name) |
|
| 168 | 168 | { |
| 169 | 169 | $this->depth += 1; |
| 170 | 170 | $this->_modules[$this->depth] = ['i' => $instance, 'c' => $class_name]; |
| 171 | 171 | } |
| 172 | 172 | |
| 173 | - protected function unsetModule($depth) |
|
| 173 | + protected function unsetModule ($depth) |
|
| 174 | 174 | { |
| 175 | 175 | unset($this->_modules[$this->depth]); |
| 176 | 176 | $this->depth = $depth - 1; |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | * @param string $class_name The name of the class. |
| 189 | 189 | * @return object |
| 190 | 190 | */ |
| 191 | - protected function _getInstance($class_name) |
|
| 191 | + protected function _getInstance ($class_name) |
|
| 192 | 192 | { |
| 193 | 193 | if (isset($this->_instances[$class_name])) |
| 194 | 194 | { |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | * @param string $class_name The name of the class. |
| 210 | 210 | * @param object $instance The object. |
| 211 | 211 | */ |
| 212 | - protected function _setInstance($class_name, $instance) |
|
| 212 | + protected function _setInstance ($class_name, $instance) |
|
| 213 | 213 | { |
| 214 | 214 | if (!isset($this->_instances[$class_name])) |
| 215 | 215 | { |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | * |
| 226 | 226 | * @param string[] $classes A set of class names that should be attached |
| 227 | 227 | */ |
| 228 | - public function registerClasses($classes) |
|
| 228 | + public function registerClasses ($classes) |
|
| 229 | 229 | { |
| 230 | 230 | $this->_register_events($classes); |
| 231 | 231 | } |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | * |
| 243 | 243 | * @param string[] $classes A list of class names. |
| 244 | 244 | */ |
| 245 | - protected function _register_events($classes) |
|
| 245 | + protected function _register_events ($classes) |
|
| 246 | 246 | { |
| 247 | 247 | foreach ($classes as $class) |
| 248 | 248 | { |
@@ -285,7 +285,7 @@ discard block |
||
| 285 | 285 | * - globals |
| 286 | 286 | * @param int $priority Defines the order the method is called. |
| 287 | 287 | */ |
| 288 | - public function register($position, $event, $priority = 0) |
|
| 288 | + public function register ($position, $event, $priority = 0) |
|
| 289 | 289 | { |
| 290 | 290 | if (!isset($this->_registered_events[$position])) |
| 291 | 291 | { |
@@ -300,7 +300,7 @@ discard block |
||
| 300 | 300 | * |
| 301 | 301 | * @return string[] |
| 302 | 302 | */ |
| 303 | - protected function _declared_classes() |
|
| 303 | + protected function _declared_classes () |
|
| 304 | 304 | { |
| 305 | 305 | if ($this->_declared_classes === null) |
| 306 | 306 | { |
@@ -321,7 +321,7 @@ discard block |
||
| 321 | 321 | * @param string $method_name |
| 322 | 322 | * @param array $dependencies the dependencies the event registered |
| 323 | 323 | */ |
| 324 | - protected function _checkParameters($class_name, $method_name, &$dependencies) |
|
| 324 | + protected function _checkParameters ($class_name, $method_name, &$dependencies) |
|
| 325 | 325 | { |
| 326 | 326 | // Lets check on the actual methods parameters |
| 327 | 327 | try |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | * @param \ElkArte\HttpReq $req |
| 40 | 40 | * @param \ElkArte\UserInfo $user |
| 41 | 41 | */ |
| 42 | - public function __construct(HttpReq $req, UserInfo $user) |
|
| 42 | + public function __construct (HttpReq $req, UserInfo $user) |
|
| 43 | 43 | { |
| 44 | 44 | $this->_req = $req; |
| 45 | 45 | $this->user = $user; |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | * |
| 51 | 51 | * @param \ElkArte\EventManager $event |
| 52 | 52 | */ |
| 53 | - public function setEventManager(EventManager $event) |
|
| 53 | + public function setEventManager (EventManager $event) |
|
| 54 | 54 | { |
| 55 | 55 | $this->event = $event; |
| 56 | 56 | } |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | * |
| 61 | 61 | * @return string|false |
| 62 | 62 | */ |
| 63 | - public function getApi() |
|
| 63 | + public function getApi () |
|
| 64 | 64 | { |
| 65 | 65 | // API Call? |
| 66 | 66 | $api = $this->_req->getRequest('api', 'trim', ''); |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | * @param \ElkArte\HttpReq $http_req |
| 39 | 39 | * @param \ElkArte\UserInfo $user |
| 40 | 40 | */ |
| 41 | - public function __construct(HttpReq $http_req, UserInfo $user) |
|
| 41 | + public function __construct (HttpReq $http_req, UserInfo $user) |
|
| 42 | 42 | { |
| 43 | 43 | $this->_request = $http_req; |
| 44 | 44 | $this->user = $user; |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | /** |
| 48 | 48 | * {@inheritdoc } |
| 49 | 49 | */ |
| 50 | - public static function hooks(EventManager $eventsManager) |
|
| 50 | + public static function hooks (EventManager $eventsManager) |
|
| 51 | 51 | { |
| 52 | 52 | return []; |
| 53 | 53 | } |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | * |
| 62 | 62 | * @return array |
| 63 | 63 | */ |
| 64 | - public static function getEvents($controller) |
|
| 64 | + public static function getEvents ($controller) |
|
| 65 | 65 | { |
| 66 | 66 | return array(); |
| 67 | 67 | } |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | /** |
| 70 | 70 | * {@inheritdoc } |
| 71 | 71 | */ |
| 72 | - public static function getModules($modules) |
|
| 72 | + public static function getModules ($modules) |
|
| 73 | 73 | { |
| 74 | 74 | return $modules; |
| 75 | 75 | } |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | * @param string[] $row A text string on which replacements are done |
| 82 | 82 | * @return string the input string with the placeholders replaced |
| 83 | 83 | */ |
| 84 | - protected function _replaceMsg($row) |
|
| 84 | + protected function _replaceMsg ($row) |
|
| 85 | 85 | { |
| 86 | 86 | global $txt, $scripturl, $context; |
| 87 | 87 | |