@@ -84,10 +84,11 @@ |
||
84 | 84 | */ |
85 | 85 | public function isActiveAndFindableAndSoOn(): bool |
86 | 86 | { |
87 | - if ($this->status == 1) |
|
88 | - return $this->true; |
|
89 | - else |
|
90 | - return $this->false; |
|
87 | + if ($this->status == 1) { |
|
88 | + return $this->true; |
|
89 | + } else { |
|
90 | + return $this->false; |
|
91 | + } |
|
91 | 92 | } |
92 | 93 | |
93 | 94 | public function getID(): int |
@@ -73,8 +73,9 @@ |
||
73 | 73 | $fetched_cache = $connection->fetchAll('SELECT * FROM caches WHERE wp_gc = "' . $wp_oc . '"'); |
74 | 74 | |
75 | 75 | // if search for wp_gc also gave no result, search for wp_nc |
76 | - if (empty($fetched_cache) == true) |
|
77 | - $fetched_cache = $connection->fetchAll('SELECT * FROM caches WHERE wp_nc = "' . $wp_oc . '"'); |
|
76 | + if (empty($fetched_cache) == true) { |
|
77 | + $fetched_cache = $connection->fetchAll('SELECT * FROM caches WHERE wp_nc = "' . $wp_oc . '"'); |
|
78 | + } |
|
78 | 79 | } |
79 | 80 | |
80 | 81 | // if (!$fetched_cache) |