Rename App Methods

- renamed a lot of App methods to CamelCase
- replaced direct public variables with get-/set-Methods
This commit is contained in:
Philipp Holzer 2018-10-09 19:58:58 +02:00
parent 5f9dd11cfb
commit 5a02e39a65
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
94 changed files with 481 additions and 338 deletions

View file

@ -139,7 +139,7 @@ class Salmon
]);
$a = get_app();
$return_code = $a->get_curl_code();
$return_code = Network::getCurl()->getCode();
// check for success, e.g. 2xx
@ -163,7 +163,7 @@ class Salmon
'Content-type: application/magic-envelope+xml',
'Content-length: ' . strlen($salmon)
]);
$return_code = $a->get_curl_code();
$return_code = Network::getCurl()->getCode();
}
if ($return_code > 299) {
@ -185,7 +185,7 @@ class Salmon
Network::post($url, $salmon, [
'Content-type: application/magic-envelope+xml',
'Content-length: ' . strlen($salmon)]);
$return_code = $a->get_curl_code();
$return_code = Network::getCurl()->getCode();
}
logger('slapper for '.$url.' returned ' . $return_code);
@ -194,7 +194,7 @@ class Salmon
return -1;
}
if (($return_code == 503) && (stristr($a->get_curl_headers(), 'retry-after'))) {
if (($return_code == 503) && (stristr(Network::getCurl()->getHeaders(), 'retry-after'))) {
return -1;
}