@@ -76,7 +76,7 @@ |
||
76 | 76 | protected function cast(array $data) |
77 | 77 | { |
78 | 78 | $analytic = new AnalyticLive(); |
79 | - $analytic->liveStreamId = $data['live']['live_stream_id']; |
|
79 | + $analytic->liveStreamId = $data['live']['live_stream_id']; |
|
80 | 80 | $analytic->liveName = $data['live']['name']; |
81 | 81 | $analytic->period = $data['period']; |
82 | 82 | // Build Analytic Data |
@@ -53,12 +53,12 @@ |
||
53 | 53 | $browser->authenticate($apiKey); |
54 | 54 | |
55 | 55 | $this->videos = new Videos($browser); |
56 | - $this->lives = new Lives($browser); |
|
56 | + $this->lives = new Lives($browser); |
|
57 | 57 | $this->players = new Players($browser); |
58 | 58 | $this->captions = new Captions($browser); |
59 | 59 | $this->analyticsVideo = new AnalyticsVideo($browser); |
60 | 60 | $this->analyticsLive = new AnalyticsLive($browser); |
61 | - $this->tokens = new Tokens($browser); |
|
62 | - $this->account = new Account($browser); |
|
61 | + $this->tokens = new Tokens($browser); |
|
62 | + $this->account = new Account($browser); |
|
63 | 63 | } |
64 | 64 | } |
@@ -24,8 +24,8 @@ discard block |
||
24 | 24 | } |
25 | 25 | |
26 | 26 | |
27 | - if(null !== $metadata){ |
|
28 | - if(!is_array($metadata)){ |
|
27 | + if (null !== $metadata) { |
|
28 | + if (!is_array($metadata)) { |
|
29 | 29 | throw new \InvalidArgumentException('Metadata argument must be an array'); |
30 | 30 | } |
31 | 31 | |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | $analyticData->session->sessionId = $playerSession['session']['session_id']; |
103 | 103 | $analyticData->session->loadedAt = new DateTime($playerSession['session']['loaded_at']); |
104 | 104 | $analyticData->session->endedAt = new DateTime($playerSession['session']['ended_at']); |
105 | - if(isset($playerSession['session']['metadatas'])){ |
|
105 | + if (isset($playerSession['session']['metadatas'])) { |
|
106 | 106 | $analyticData->session->metadata = $playerSession['session']['metadatas']; |
107 | 107 | } |
108 | 108 |