Skip to content

Commit

Permalink
Intendation
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristian Polso committed Dec 1, 2016
1 parent c2b4a84 commit 16211cf
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions src/DetectCMS/DetectCMS.php
Expand Up @@ -6,22 +6,22 @@
class DetectCMS {

public $systems = array(
"Drupal",
"Wordpress",
"Joomla",
"Liferay",
"vBulletin",
"Magento",
"ExpressionEngine",
"Sitecore",
'Bohemiasoft',
'EshopRychle',
'Fastcentrik',
'Shopsys',
'Shoptet',
'Webgarden',
'Webnode',
);
"Drupal",
"Wordpress",
"Joomla",
"Liferay",
"vBulletin",
"Magento",
"ExpressionEngine",
"Sitecore",
'Bohemiasoft',
'EshopRychle',
'Fastcentrik',
'Shopsys',
'Shoptet',
'Webgarden',
'Webnode',
);

private $common_methods = array("generator_header","generator_meta");

Expand All @@ -47,7 +47,7 @@ public function check() {

foreach($this->systems as $system_name) {

$system_class = 'DetectCMS\\Systems\\'.$system_name;
$system_class = 'DetectCMS\\Systems\\'.$system_name;

$system = new $system_class($this->home_html, $this->home_headers, $this->url);

Expand All @@ -57,9 +57,9 @@ public function check() {

if($system->$method()) {

return $system_name;
return $system_name;

}
}

}

Expand All @@ -73,7 +73,7 @@ public function check() {

foreach($this->systems as $system_name) {

$system_class = 'DetectCMS\\Systems\\'.$system_name;
$system_class = 'DetectCMS\\Systems\\'.$system_name;

$system = new $system_class($this->home_html, $this->home_headers, $this->url);

Expand Down Expand Up @@ -160,17 +160,17 @@ protected function fetchBodyAndHeaders() {

foreach (explode("\r\n", $header) as $line) {
if($line == '')
{
continue;
}

$array = explode(': ', $line);
if(array_key_exists(1,$array))
{
list ($key, $value) = $array;
$header_array[$key] = $value;
continue;
}
{
continue;
}

$array = explode(': ', $line);
if(array_key_exists(1,$array))
{
list ($key, $value) = $array;
$header_array[$key] = $value;
continue;
}

$header_array['http_code'] = $line;
}
Expand Down

0 comments on commit 16211cf

Please sign in to comment.