code refactoring
- improved comparing & checking - improved string composition
This commit is contained in:
1 parent
bd6e0b5151
commit
9985b814d2
41 files changed
+337
-318
No files matched your search
@@ -61,7 +61,7 @@ class DedimaniaData {
|
||||
public function toArray() {
|
||||
$array = array();
|
||||
foreach (get_object_vars($this) as $key => $value) {
|
||||
if ($key == 'records' || $key == 'sessionId' || $key == 'directoryAccessChecked' || $key == 'serverMaxRank' || $key == 'players') {
|
||||
if ($key === 'records' || $key === 'sessionId' || $key === 'directoryAccessChecked' || $key === 'serverMaxRank' || $key === 'players') {
|
||||
continue;
|
||||
}
|
||||
$array[ucfirst($key)] = $value;
|
||||
|
||||
Reference in new issue
Block a user