| 1 | <?php |
||
| 6 | class SystemPreferences extends Preferences { |
||
| 7 | |||
| 8 | const VERSION = 'version'; |
||
|
|
|||
| 9 | const PLATTFORM_NAME = 'plattform_name'; |
||
| 10 | const ROOT_URL = 'root_url'; |
||
| 11 | const API_URL = 'api_url'; |
||
| 12 | const API_VERSION = 'api_version'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Returns the plattforms name |
||
| 16 | * |
||
| 17 | * @return string |
||
| 18 | */ |
||
| 19 | public function getPlattformName() { |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Returns the url to the public API |
||
| 25 | * |
||
| 26 | * @return string |
||
| 27 | */ |
||
| 28 | public function getApiUrl() { |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Returns the API version |
||
| 34 | * |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | public function getApiVersion() { |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Returns the plattform version (keeko/core) |
||
| 43 | * |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | public function getVersion() { |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Returns the root url for the installed plattform |
||
| 52 | * |
||
| 53 | * @return string |
||
| 54 | */ |
||
| 55 | public function getRootUrl() { |
||
| 58 | } |
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.