Bump symfony/http-kernel from 4.4.43 to 4.4.50 #1

Open
dependabot[bot] wants to merge 15 commits from dependabot/composer/symfony/http-kernel-4.4.50 into master
pull from: dependabot/composer/symfony/http-kernel-4.4.50
2 changed files with 22 additions and 10 deletions
Showing only changes of commit 8d33a26168 - Show all commits

No files matched your search

+13 -6
View File
@@ -26,6 +26,7 @@ class UptimeRobotAlertContacsService extends UptimeRobotService
$response = json_decode($jsonResponse); $response = json_decode($jsonResponse);
if ($response) {
switch ($response->stat) { switch ($response->stat) {
case 'ok': case 'ok':
@@ -40,6 +41,7 @@ class UptimeRobotAlertContacsService extends UptimeRobotService
default: default:
break; break;
} }
}
return $this->cachedAlertContacts; return $this->cachedAlertContacts;
@@ -66,7 +68,7 @@ class UptimeRobotAlertContacsService extends UptimeRobotService
} }
$response = json_decode($jsonResponse); $response = json_decode($jsonResponse);
if ($response) {
switch ($response->stat) { switch ($response->stat) {
case 'ok': case 'ok':
$alertContact->setId($response->alertcontact->id); $alertContact->setId($response->alertcontact->id);
@@ -76,7 +78,8 @@ class UptimeRobotAlertContacsService extends UptimeRobotService
return false; return false;
break; break;
} }
}
return null;
} }
/** /**
@@ -102,16 +105,18 @@ class UptimeRobotAlertContacsService extends UptimeRobotService
$response = json_decode($jsonResponse); $response = json_decode($jsonResponse);
if ($response) {
switch ($response->stat) { switch ($response->stat) {
case 'ok': case 'ok':
$alertContact->setId($response->alert_contact->id); $alertContact->setId($response->alert_contact->id);
return $alertContact; return $alertContact;
break; break;
default: default:
return false; return null;
break; break;
} }
} }
}
/** /**
* @param AlertContact $alertContact * @param AlertContact $alertContact
@@ -128,16 +133,18 @@ class UptimeRobotAlertContacsService extends UptimeRobotService
} }
$response = json_decode($jsonResponse); $response = json_decode($jsonResponse);
if ($response) {
switch ($response->stat) { switch ($response->stat) {
case 'ok': case 'ok':
return $alertContact; return $alertContact;
break; break;
default: default:
return false; return null;
break; break;
} }
} }
return null;
}
/** /**
* @param $id * @param $id
@@ -152,7 +159,7 @@ class UptimeRobotAlertContacsService extends UptimeRobotService
/** @var AlertContact $alertContact */ /** @var AlertContact $alertContact */
foreach ($this->cachedAlertContacts as $alertContact) { foreach ($this->cachedAlertContacts as $alertContact) {
if ($alertContact->getId() === $id || $alertContact->getFriendlyName() === $name || $alertContact->getValue() === $value ) { if ($alertContact->getId() === $id || $alertContact->getFriendlyName() === $name || $alertContact->getValue() === $value) {
return $alertContact; return $alertContact;
} }
} }
+9 -4
View File
@@ -143,7 +143,7 @@ class UptimeRobotMonitorService extends UptimeRobotService
'status' => $monitor->getStatus() 'status' => $monitor->getStatus()
]; ];
if (!empty($alertContactsString)){ if (!empty($alertContactsString)) {
$params['alert_contacts'] = $alertContactsString; $params['alert_contacts'] = $alertContactsString;
} }
@@ -156,7 +156,7 @@ class UptimeRobotMonitorService extends UptimeRobotService
} }
$response = json_decode($jsonResponse); $response = json_decode($jsonResponse);
if ($response) {
switch ($response->stat) { switch ($response->stat) {
case 'ok': case 'ok':
$monitor->setId($response->monitor->id); $monitor->setId($response->monitor->id);
@@ -167,6 +167,7 @@ class UptimeRobotMonitorService extends UptimeRobotService
break; break;
} }
} }
}
/** /**
* @param Monitor $monitor * @param Monitor $monitor
@@ -183,7 +184,7 @@ class UptimeRobotMonitorService extends UptimeRobotService
} }
$response = json_decode($jsonResponse); $response = json_decode($jsonResponse);
if ($response) {
switch ($response->stat) { switch ($response->stat) {
case 'ok': case 'ok':
return $monitor; return $monitor;
@@ -193,6 +194,8 @@ class UptimeRobotMonitorService extends UptimeRobotService
break; break;
} }
} }
return null;
}
/** /**
* @param Monitor $monitor * @param Monitor $monitor
@@ -209,7 +212,7 @@ class UptimeRobotMonitorService extends UptimeRobotService
} }
$response = json_decode($jsonResponse); $response = json_decode($jsonResponse);
if ($response) {
switch ($response->stat) { switch ($response->stat) {
case 'ok': case 'ok':
return $monitor; return $monitor;
@@ -219,6 +222,8 @@ class UptimeRobotMonitorService extends UptimeRobotService
break; break;
} }
} }
return null;
}
/** /**
* @param $id * @param $id