Remove unused ConfigException class, make code style adjustments
Deleted ConfigException class as it was not being used anywhere in the project. Code style adjustments were made to conform with the PSR-12 coding standard. This includes property and variable naming conventions, use of strict equality operators, reformatting of code and removal of unnecessary comments. The .idea/php.xml file was also updated to a newer version of the library. Log functions are updated to throw exceptions for non-existent message and invalid level. Also, LogLib is now registered/unregistered as an exception handler. Other adjustments were made to achieve consistency in the codebase including renaming properties for clarity, moving magic strings into constants, improving code readability and adding descriptive comments.
This commit is contained in:
parent
892c4c7ad7
commit
4fa87c349c
18 changed files with 666 additions and 494 deletions
|
@ -8,19 +8,16 @@
|
|||
class Options
|
||||
{
|
||||
/**
|
||||
* The name of the application
|
||||
*
|
||||
* @var string
|
||||
* @property_name application_name
|
||||
*/
|
||||
private $ApplicationName;
|
||||
private $application_name;
|
||||
|
||||
/**
|
||||
* Options constructor.
|
||||
*/
|
||||
public function __construct(string $application_name)
|
||||
{
|
||||
$this->ApplicationName = $application_name;
|
||||
$this->application_name = $application_name;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -30,7 +27,7 @@
|
|||
*/
|
||||
public function getApplicationName(): string
|
||||
{
|
||||
return $this->ApplicationName;
|
||||
return $this->application_name;
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue