Basic code style prettiness.

parent c805aaa8
......@@ -14,8 +14,8 @@ if (!in_array(PHP_SAPI, ['cgi-fcgi', 'cli'])) {
}
}
use DetectLanguage\DetectLanguage;
use GeoIp2\Database\Reader;
use \DetectLanguage\DetectLanguage;
use Poduptime\PodStatus;
use RedBeanPHP\R;
......@@ -36,7 +36,7 @@ $sqldebug && R::fancyDebug(true);
DetectLanguage::setApiKey(c('dlkey'));
$hour = date("H");
$hour = date('H');
try {
// Setup GeoIP Database
......@@ -258,11 +258,9 @@ foreach ($pods as $pod) {
($outputbody ? $d->loadHTML($outputbody) : $d->loadHTML('<html></html>'));
$hs = '';
for($type=1; $type<6; $type++)
{
$h_es = $d->getElementsByTagName('h'.$type);
foreach($h_es as $h)
{
for ($type = 1; $type < 6; $type++) {
$h_es = $d->getElementsByTagName('h' . $type);
foreach ($h_es as $h) {
if (strpos($h->textContent, 'JavaScript') === false) {
$hs .= $h->textContent . ' ';
}
......@@ -478,7 +476,7 @@ function _curl($url)
'curl_error' => curl_error($chss),
'curl_info' => curl_getinfo($chss, CURLINFO_CERTINFO),
'curl_conntime' => curl_getinfo($chss, CURLINFO_CONNECT_TIME),
'curl_nstime' => curl_getinfo($chss, CURLINFO_NAMELOOKUP_TIME)
'curl_nstime' => curl_getinfo($chss, CURLINFO_NAMELOOKUP_TIME),
];
curl_close($chss);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment