File tree 2 files changed +2
-9
lines changed
2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ public function getAttribute($key)
171
171
172
172
'pinned ' => (bool ) $ this ->getRawAttribute ($ key ),
173
173
174
- 'disqus_user_data ' => $ this ->getDisqusUserData ( ),
174
+ 'disqus_user_data ' => $ this ->getArray ( $ key ),
175
175
'message_html ' => $ this ->getMessageHtml (),
176
176
177
177
'commentable ' ,
@@ -306,13 +306,6 @@ protected function newReportableExtraParams(): array
306
306
];
307
307
}
308
308
309
- private function getDisqusUserData (): ?array
310
- {
311
- $ value = $ this ->getRawAttribute ('disqus_user_data ' );
312
-
313
- return $ value === null ? null : json_decode ($ value , true );
314
- }
315
-
316
309
private function getMessageHtml (): ?string
317
310
{
318
311
return $ this ->memoize (__FUNCTION__ , fn () => markdown ($ this ->message , 'comment ' ));
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public function getRawAttribute(string $key)
16
16
return $ this ->attributes [$ key ] ?? null ;
17
17
}
18
18
19
- protected function getArray (string $ key )
19
+ protected function getArray (string $ key ): ? array
20
20
{
21
21
$ value = $ this ->getRawAttribute ($ key );
22
22
You can’t perform that action at this time.
0 commit comments