@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | if (!$this->tableName) |
| 29 | 29 | { |
| 30 | 30 | $ref = new ReflectionClass($this); |
| 31 | - $this->tableName = strtolower($ref->getShortName()).'s'; |
|
| 31 | + $this->tableName = strtolower($ref->getShortName()) . 's'; |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | Self::$table = $this->tableName; |
@@ -66,11 +66,11 @@ discard block |
||
| 66 | 66 | |
| 67 | 67 | public static function getAll() |
| 68 | 68 | { |
| 69 | - if(!Self::$table) { |
|
| 69 | + if (!Self::$table) { |
|
| 70 | 70 | self::$table = strtolower(static::class) . 's'; |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | - $query = "SELECT * FROM ".self::$table; |
|
| 73 | + $query = "SELECT * FROM " . self::$table; |
|
| 74 | 74 | $results = Connection::db()->query($query); |
| 75 | 75 | $res = []; |
| 76 | 76 | |