File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
app/code/Meta/BusinessExtension/Model Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 25
25
26
26
class PersistMetaLogImmediatelyHandler
27
27
{
28
-
29
28
/**
30
29
* @var GraphAPIAdapter
31
30
*/
32
- private $ graphApiAdapter ;
31
+ private GraphAPIAdapter $ graphApiAdapter ;
33
32
34
33
/**
35
34
* @var SystemConfig
36
35
*/
37
- private $ systemConfig ;
36
+ private SystemConfig $ systemConfig ;
38
37
39
38
/**
40
39
* PersistMetaLogImmediatelyHandler constructor
@@ -54,12 +53,13 @@ public function __construct(
54
53
* Consumer handler to persist exception logs from message queue to Meta
55
54
*
56
55
* @param string $message
56
+ * @return void
57
57
*/
58
- public function persistMetaLogImmediately (string $ message )
58
+ public function persistMetaLogImmediately (string $ message ): void
59
59
{
60
60
$ context = json_decode ($ message , true );
61
61
$ accessToken = null ;
62
- if ($ context ['store_id ' ]) {
62
+ if (isset ( $ context ['store_id ' ]) ) {
63
63
$ accessToken = $ this ->systemConfig ->getAccessToken ($ context ['store_id ' ]);
64
64
}
65
65
$ this ->graphApiAdapter ->persistLogToMeta ($ context , $ accessToken );
You can’t perform that action at this time.
0 commit comments