Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | public function getSimplifiedEvents(SentryRequest $sentryRequest, $organisation, $project) |
||
33 | { |
||
34 | $events = $this |
||
35 | ->sentryClient |
||
36 | ->get($sentryRequest, sprintf(self::EVENTS_PATTERN, $organisation, $project)); |
||
37 | |||
38 | $result = []; |
||
39 | |||
40 | foreach ($events as $event) { |
||
41 | $result[] = [ |
||
42 | 'id' => $event['id'], |
||
43 | 'created' => $event['dateCreated'] |
||
44 | ]; |
||
45 | } |
||
46 | |||
47 | return $result; |
||
48 | } |
||
49 | } |
||
50 |