howardjones/network-weathermap

View on GitHub
lib/Weathermap/Core/globals.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Weathermap\Core;

/**
 * Remaining global variables - mostly to do with logging
 */

// TODO: This stuff should be in some kind of App/Runtime object
// (and it's mostly to do with logging, so a proper logging class would take the rest)

$weathermap_debugging = false;
$weathermap_debugging_readdata = false;
$weathermap_map = '';
$weathermap_warncount = 0;
$weathermap_lazycounter = 0;

// don't produce debug output for these functions
$weathermap_debug_suppress = array(
    'processstring',
    'mysprintf'
);

// don't output warnings/errors for these codes (WMxxx)
$weathermap_error_suppress = array();