File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ public function buildEvent(EventOptions $opts)
2727 $ clientFP = json_decode ($ cookieDecoded );
2828 $ eventType = $ opts ->eventType ? $ opts ->eventType : EventTypes::LOG_IN ;
2929
30- $ cid = $ clientFP[ ' cid ' ] ? $ clientFP[ ' cid ' ] : '' ;
30+ $ cid = $ clientFP-> cid ? $ clientFP-> cid : '' ;
3131 $ vid = Utils::generateGuidV4 ();
32- $ fp = $ clientFP[ ' fp ' ] ? $ clientFP[ ' fp ' ] : '' ;
32+ $ fp = $ clientFP-> fp ? $ clientFP-> fp : '' ;
3333 $ ip = $ opts ->ip ? $ opts ->ip : Utils::clientIpFromRequest ();
3434 $ remoteIP = $ opts ->remoteIp ? $ opts ->remoteIp : Utils::clientIpFromRequest ();
3535 $ userAgent = $ opts ->userAgent ? $ opts ->userAgent : Utils::userAgentFromRequest ();
Original file line number Diff line number Diff line change 22
33namespace SecureNative \sdk ;
44
5- const SIGNATURE_KEY = 'HTTTP_X_SECURENATIVE ' ;
5+ const SIGNATURE_KEY = 'HTTP_X_SECURENATIVE ' ;
66
77class Middleware
88{
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ class EventOptions
2323 public $ remoteIp ;
2424 public $ user ;
2525 public $ device ;
26- public $ params = array () ;
26+ public $ params = null ;
2727
2828 public function __construct ($ json = false )
2929 {
You can’t perform that action at this time.
0 commit comments