Skip to content

Commit 9586eb0

Browse files
committed
Whitespace refactoring
1 parent 8b08f85 commit 9586eb0

14 files changed

+23
-23
lines changed

src/libraries/Comment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public function jsonSerialize() {
186186
"iso" => $edited_datetime->format("r"),
187187
"unix" => $edited_datetime->getTimestamp(),
188188
];
189-
189+
190190
return [
191191
"content" => $this->getContent(true),
192192
"created_datetime" => $created_datetime,

src/libraries/Common.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public static function isBrowser($user_agent) {
114114
if (stripos($user_agent, "Trident" ) !== false) return true;
115115
if (stripos($user_agent, "Blink" ) !== false) return true;
116116

117-
// Not a browser
117+
// Not a browser
118118
return false;
119119
}
120120

src/libraries/Document.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function __construct($data) {
5656
throw new InvalidArgumentException("Cannot use data argument");
5757
}
5858
}
59-
59+
6060
public static function getAllDocuments() {
6161
$cache_key = "bnetdocs-documents";
6262
$cache_val = Common::$cache->get($cache_key);
@@ -105,7 +105,7 @@ public static function getAllDocuments() {
105105
}
106106
return null;
107107
}
108-
108+
109109
public function getContent($prepare) {
110110
if (!$prepare) {
111111
return $this->content;
@@ -170,7 +170,7 @@ public static function getDocumentsByUserId($user_id) {
170170
public function getEditedCount() {
171171
return $this->edited_count;
172172
}
173-
173+
174174
public function getEditedDateTime() {
175175
if (is_null($this->edited_datetime)) {
176176
return $this->edited_datetime;
@@ -210,7 +210,7 @@ public function getUser() {
210210
public function getUserId() {
211211
return $this->user_id;
212212
}
213-
213+
214214
protected static function normalize(StdClass &$data) {
215215
$data->content = (string) $data->content;
216216
$data->created_datetime = (string) $data->created_datetime;
@@ -222,7 +222,7 @@ protected static function normalize(StdClass &$data) {
222222
if (!is_null($data->edited_datetime))
223223
$data->edited_datetime = $data->edited_datetime;
224224

225-
if (!is_null($data->user_id))
225+
if (!is_null($data->user_id))
226226
$data->user_id = $data->user_id;
227227

228228
return true;

src/libraries/NewsCategory.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,21 +94,21 @@ public function getFilename() {
9494
public function getId() {
9595
return $this->id;
9696
}
97-
97+
9898
public function getLabel() {
9999
return $this->label;
100100
}
101101

102102
public function getSortId() {
103103
return $this->sort_id;
104104
}
105-
105+
106106
protected static function normalize(StdClass &$data) {
107107
$data->filename = (string) $data->filename;
108108
$data->id = (int) $data->id;
109109
$data->label = (string) $data->label;
110110
$data->sort_id = (string) $data->sort_id;
111-
111+
112112
return true;
113113
}
114114

src/libraries/NewsPost.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ public function getUser() {
256256
public function getUserId() {
257257
return $this->user_id;
258258
}
259-
259+
260260
protected static function normalize(StdClass &$data) {
261261
$data->category_id = (int) $data->category_id;
262262
$data->content = (string) $data->content;
@@ -368,7 +368,7 @@ public function save() {
368368
throw new QueryException("Cannot save news post");
369369
}
370370
$stmt->closeCursor();
371-
371+
372372
$object = new StdClass();
373373
$object->category_id = $this->category_id;
374374
$object->content = $this->content;
@@ -383,7 +383,7 @@ public function save() {
383383
$cache_key = "bnetdocs-newspost-" . $this->id;
384384
Common::$cache->set($cache_key, serialize($object), 300);
385385
Common::$cache->delete("bnetdocs-newsposts");
386-
386+
387387
return true;
388388
} catch (PDOException $e) {
389389
throw new QueryException("Cannot save news post", $e);

src/libraries/Packet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function __construct($data) {
7878
throw new InvalidArgumentException("Cannot use data argument");
7979
}
8080
}
81-
81+
8282
public static function getAllPackets() {
8383
$cache_key = "bnetdocs-packets";
8484
$cache_val = Common::$cache->get($cache_key);

src/libraries/PacketApplicationLayer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ protected static function normalize(StdClass &$data) {
9898

9999
return true;
100100
}
101-
101+
102102
public function refresh() {
103103
$cache_key = "bnetdocs-packetapplicationlayer-" . $this->id;
104104
$cache_val = Common::$cache->get($cache_key);

src/libraries/PacketTransportLayer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ protected static function normalize(StdClass &$data) {
9898

9999
return true;
100100
}
101-
101+
102102
public function refresh() {
103103
$cache_key = "bnetdocs-packettransportlayer-" . $this->id;
104104
$cache_val = Common::$cache->get($cache_key);

src/libraries/Product.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ protected static function normalize(StdClass &$data) {
125125

126126
return true;
127127
}
128-
128+
129129
public function refresh() {
130130
$cache_key = "bnetdocs-product-" . $this->bnet_product_id;
131131
$cache_val = Common::$cache->get($cache_key);

src/libraries/Recaptcha.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ public function verify($response, $remoteip = null) {
5050

5151
return ($j->success);
5252
}
53-
53+
5454
}

0 commit comments

Comments
 (0)