YetiForceCompany/YetiForceCRM

View on GitHub
include/ConfigUtils.php

Summary

Maintainability
A
0 mins
Test Coverage
A
90%

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 10 and the first side effect is on line 10.
Open

<?php
Severity: Minor
Found in include/ConfigUtils.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    date_default_timezone_set($timeZone);
Severity: Minor
Found in include/ConfigUtils.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    \App\ErrorHandler::init();
Severity: Minor
Found in include/ConfigUtils.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    \define('ROOT_DIRECTORY', str_replace(DIRECTORY_SEPARATOR . 'include', '', __DIR__));
Severity: Minor
Found in include/ConfigUtils.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    \define('IS_PUBLIC_DIR', false);
Severity: Minor
Found in include/ConfigUtils.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    session_save_path(ROOT_DIRECTORY . DIRECTORY_SEPARATOR . 'cache' . DIRECTORY_SEPARATOR . 'session');
Severity: Minor
Found in include/ConfigUtils.php by phpcodesniffer

There are no issues that match your filters.

Category
Status