[LFC][IFC] overflow-wrap: anywhere/break-word rules over word-break: keep-all
[WebKit-https.git] / Websites / perf.webkit.org / public / api / report-commits.php
1 <?php
2
3 require('../include/json-header.php');
4 require('../include/commit-updater.php');
5
6 function main($post_data)
7 {
8     $db = new Database;
9     if (!$db->connect())
10         exit_with_error('DatabaseConnectionFailure');
11
12     $report = json_decode($post_data, true);
13
14     verify_worker($db, $report);
15
16     $commit_info_list = array_get($report, 'commits', array());
17     $should_insert = array_get($report, 'insert', true);
18
19     $commit_modifier = new CommitUpdater($db);
20     $commit_modifier->report_commits($commit_info_list, $should_insert);
21
22     exit_with_success();
23 }
24
25 main(file_get_contents('php://input'));
26
27 ?>