for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* © 2018 - Phoponent
* Author: Nicolas Choquet
* Email: [email protected]
* LICENSE GPL ( GNU General Public License )
*/
namespace phoponent\framework\static_classe;
use phoponent\framework\traits\static_class;
class debug {
use static_class;
const TRUE = '1', FALSE = '0';
private static $file_path = 'phoponent/framework/debug.info';
public static function set_debug() {
if(!is_file(self::$file_path)) {
file_put_contents(self::$file_path, self::FALSE);
}
if((integer)file_get_contents(self::$file_path) === 1) {
else {
file_put_contents(self::$file_path, self::TRUE);
public static function get_debug(): bool {
return (boolean)(integer)file_get_contents(self::$file_path);