Commit 2b7f3b34 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Type Deklarationen für String entfernt, da dies in anderen php Versionen Fehler verursacht hat

parent e060ccae
...@@ -12,7 +12,7 @@ class Opencrawlregengergie extends Searchengine ...@@ -12,7 +12,7 @@ class Opencrawlregengergie extends Searchengine
parent::__construct($engine, $metager); parent::__construct($engine, $metager);
} }
public function loadResults (String $result) public function loadResults ($result)
{ {
try { try {
$content = simplexml_load_string($result); $content = simplexml_load_string($result);
......
...@@ -12,7 +12,7 @@ class Opencrawltauchen extends Searchengine ...@@ -12,7 +12,7 @@ class Opencrawltauchen extends Searchengine
parent::__construct($engine, $metager); parent::__construct($engine, $metager);
} }
public function loadResults (String $result) public function loadResults ($result)
{ {
try { try {
$content = simplexml_load_string($result); $content = simplexml_load_string($result);
......
...@@ -13,7 +13,7 @@ class Overture extends Searchengine ...@@ -13,7 +13,7 @@ class Overture extends Searchengine
parent::__construct($engine, $metager); parent::__construct($engine, $metager);
} }
public function loadResults (String $result) public function loadResults ($result)
{ {
$result = preg_replace("/\r\n/si", "", $result); $result = preg_replace("/\r\n/si", "", $result);
try { try {
......
...@@ -12,7 +12,7 @@ class OvertureAds extends Searchengine ...@@ -12,7 +12,7 @@ class OvertureAds extends Searchengine
parent::__construct($engine, $metager); parent::__construct($engine, $metager);
} }
public function loadResults (String $result) public function loadResults ($result)
{ {
$result = preg_replace("/\r\n/si", "", $result); $result = preg_replace("/\r\n/si", "", $result);
try { try {
......
...@@ -12,7 +12,7 @@ class Qip extends Searchengine ...@@ -12,7 +12,7 @@ class Qip extends Searchengine
parent::__construct($engine, $metager); parent::__construct($engine, $metager);
} }
public function loadResults (String $result) public function loadResults ($result)
{ {
die($result); die($result);
$results = trim($result); $results = trim($result);
......
...@@ -12,7 +12,7 @@ class Qualigo extends Searchengine ...@@ -12,7 +12,7 @@ class Qualigo extends Searchengine
parent::__construct($engine, $metager); parent::__construct($engine, $metager);
} }
public function loadResults (String $results) public function loadResults ($results)
{ {
try { try {
$content = simplexml_load_string($results); $content = simplexml_load_string($results);
......
...@@ -12,7 +12,7 @@ class Similar_product extends Searchengine ...@@ -12,7 +12,7 @@ class Similar_product extends Searchengine
parent::__construct($engine, $metager); parent::__construct($engine, $metager);
} }
public function loadResults (String $result) public function loadResults ($result)
{ {
$results = json_decode($result); $results = json_decode($result);
......
...@@ -18,7 +18,7 @@ class Similar_product_ads extends Searchengine ...@@ -18,7 +18,7 @@ class Similar_product_ads extends Searchengine
} }
} }
public function loadResults (String $results) public function loadResults ($results)
{ {
$results = json_decode($result); $results = json_decode($result);
......
...@@ -12,7 +12,7 @@ class Suchticker extends Searchengine ...@@ -12,7 +12,7 @@ class Suchticker extends Searchengine
parent::__construct($engine, $metager); parent::__construct($engine, $metager);
} }
public function loadResults (String $result) public function loadResults ($result)
{ {
$results = trim($result); $results = trim($result);
......
...@@ -12,7 +12,7 @@ class Tuhh extends Searchengine ...@@ -12,7 +12,7 @@ class Tuhh extends Searchengine
parent::__construct($engine, $metager); parent::__construct($engine, $metager);
} }
public function loadResults (String $result) public function loadResults ($result)
{ {
try { try {
$content = simplexml_load_string($result); $content = simplexml_load_string($result);
......
...@@ -12,7 +12,7 @@ class Wikipedia extends Searchengine ...@@ -12,7 +12,7 @@ class Wikipedia extends Searchengine
parent::__construct($engine, $metager); parent::__construct($engine, $metager);
} }
public function loadResults (String $result) public function loadResults ($result)
{ {
$result = utf8_decode($result); $result = utf8_decode($result);
$counter = 0; $counter = 0;
......
...@@ -12,7 +12,7 @@ class Witch extends Searchengine ...@@ -12,7 +12,7 @@ class Witch extends Searchengine
parent::__construct($engine, $metager); parent::__construct($engine, $metager);
} }
public function loadResults (String $result) public function loadResults ($result)
{ {
$result = html_entity_decode(trim(utf8_encode($result))); $result = html_entity_decode(trim(utf8_encode($result)));
......
...@@ -12,7 +12,7 @@ class Yacy extends Searchengine ...@@ -12,7 +12,7 @@ class Yacy extends Searchengine
parent::__construct($engine, $metager); parent::__construct($engine, $metager);
} }
public function loadResults (String $result) public function loadResults ($result)
{ {
# die($result); # die($result);
......
...@@ -12,7 +12,7 @@ class Yacyunih extends Searchengine ...@@ -12,7 +12,7 @@ class Yacyunih extends Searchengine
parent::__construct($engine, $metager); parent::__construct($engine, $metager);
} }
public function loadResults (String $result) public function loadResults ($result)
{ {
try { try {
$content = simplexml_load_string($result); $content = simplexml_load_string($result);
......
...@@ -12,7 +12,7 @@ class Yandex extends Searchengine ...@@ -12,7 +12,7 @@ class Yandex extends Searchengine
parent::__construct($engine, $metager); parent::__construct($engine, $metager);
} }
public function loadResults (String $result) public function loadResults ($result)
{ {
$title = ""; $title = "";
......
...@@ -12,7 +12,7 @@ class Zeitde extends Searchengine ...@@ -12,7 +12,7 @@ class Zeitde extends Searchengine
parent::__construct($engine, $metager); parent::__construct($engine, $metager);
} }
public function loadResults (String $result) public function loadResults ($result)
{ {
$results = json_decode($result); $results = json_decode($result);
......
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