Minor fixes and typos identified by PHPStan (task #7726)
Minor fixes and typos identified by PHPStan (task #7726)

QoboLtd/project-template-cakephp,QoboLtd/project-template-cakephp,QoboLtd/project-template-cakephp,QoboLtd/project-template-cakephp,QoboLtd/project-template-cakephp