for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace keeko\core\preferences;
use keeko\core\preferences\Preferences;
class SystemPreferences extends Preferences {
const VERSION = 'version';
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
$a = "a"; $ab = "ab"; $abc = "abc";
will produce issues in the first and second line, while this second example
will produce no issues.
const PLATTFORM_NAME = 'plattform_name';
const ROOT_URL = 'root_url';
const API_URL = 'api_url';
const API_VERSION = 'api_version';
/**
* Returns the plattforms name
*
* @return string
*/
public function getPlattformName() {
return $this->get(self::PLATTFORM_NAME);
}
* Returns the url to the public API
public function getApiUrl() {
return $this->get(self::API_URL);
* Returns the API version
public function getApiVersion() {
return $this->get(self::API_VERSION);
* Returns the plattform version (keeko/core)
public function getVersion() {
return $this->get(self::VERSION);
* Returns the root url for the installed plattform
public function getRootUrl() {
return $this->get(self::ROOT_URL);
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
will produce issues in the first and second line, while this second example
will produce no issues.