@@ -16,48 +16,48 @@ |
||
| 16 | 16 | */ |
| 17 | 17 | class Globals { |
| 18 | 18 | |
| 19 | - /** |
|
| 20 | - * Get global $WT_TREE variable. |
|
| 21 | - * |
|
| 22 | - * @return \Fisharebest\Webtrees\Tree |
|
| 23 | - */ |
|
| 24 | - public static function getTree() { |
|
| 25 | - global $WT_TREE; |
|
| 19 | + /** |
|
| 20 | + * Get global $WT_TREE variable. |
|
| 21 | + * |
|
| 22 | + * @return \Fisharebest\Webtrees\Tree |
|
| 23 | + */ |
|
| 24 | + public static function getTree() { |
|
| 25 | + global $WT_TREE; |
|
| 26 | 26 | |
| 27 | - return $WT_TREE; |
|
| 28 | - } |
|
| 27 | + return $WT_TREE; |
|
| 28 | + } |
|
| 29 | 29 | |
| 30 | - /** |
|
| 31 | - * Check whether the visitor is a bot. |
|
| 32 | - * |
|
| 33 | - * @return boolean |
|
| 34 | - */ |
|
| 35 | - public static function isSearchSpider() { |
|
| 36 | - global $SEARCH_SPIDER; |
|
| 30 | + /** |
|
| 31 | + * Check whether the visitor is a bot. |
|
| 32 | + * |
|
| 33 | + * @return boolean |
|
| 34 | + */ |
|
| 35 | + public static function isSearchSpider() { |
|
| 36 | + global $SEARCH_SPIDER; |
|
| 37 | 37 | |
| 38 | - return $SEARCH_SPIDER; |
|
| 39 | - } |
|
| 38 | + return $SEARCH_SPIDER; |
|
| 39 | + } |
|
| 40 | 40 | |
| 41 | - /** |
|
| 42 | - * Get the current controller. |
|
| 43 | - * |
|
| 44 | - * @return \Fisharebest\Webtrees\BaseController |
|
| 45 | - */ |
|
| 46 | - public static function getController() { |
|
| 47 | - global $controller; |
|
| 41 | + /** |
|
| 42 | + * Get the current controller. |
|
| 43 | + * |
|
| 44 | + * @return \Fisharebest\Webtrees\BaseController |
|
| 45 | + */ |
|
| 46 | + public static function getController() { |
|
| 47 | + global $controller; |
|
| 48 | 48 | |
| 49 | - return $controller; |
|
| 50 | - } |
|
| 49 | + return $controller; |
|
| 50 | + } |
|
| 51 | 51 | |
| 52 | - /** |
|
| 53 | - * Get the global facts |
|
| 54 | - * |
|
| 55 | - * @return array |
|
| 56 | - */ |
|
| 57 | - public static function getGlobalFacts() { |
|
| 58 | - global $global_facts; |
|
| 52 | + /** |
|
| 53 | + * Get the global facts |
|
| 54 | + * |
|
| 55 | + * @return array |
|
| 56 | + */ |
|
| 57 | + public static function getGlobalFacts() { |
|
| 58 | + global $global_facts; |
|
| 59 | 59 | |
| 60 | - return $global_facts; |
|
| 61 | - } |
|
| 60 | + return $global_facts; |
|
| 61 | + } |
|
| 62 | 62 | |
| 63 | 63 | } |