Change all the "new class" by "new Class"
This commit is contained in:
@@ -60,7 +60,7 @@ class Rss
|
||||
return $this->link;
|
||||
if (! is_string ($link))
|
||||
throw new \Exception ("Link provided to RSS is not a string", 500);
|
||||
$verify = new \verify ();
|
||||
$verify = new verify ();
|
||||
if (! $verify->is_URL ($link))
|
||||
throw new \Exception ("Link provided to RSS is not an URL", 500);
|
||||
if ($link === "")
|
||||
@@ -124,7 +124,7 @@ class Rss
|
||||
if (! is_string ($lastBuildDate))
|
||||
throw new \Exception ("lastBuildDate provided to RSS is not a string",
|
||||
500);
|
||||
$verify = new \verify ();
|
||||
$verify = new verify ();
|
||||
if (! $verify->is_datetimeSQL ($lastBuildDate))
|
||||
throw new \Exception ("lastBuildDate provided to RSS is not a valid date",
|
||||
500);
|
||||
@@ -258,7 +258,7 @@ class Rssitem
|
||||
return $this->link;
|
||||
if (! is_string ($link))
|
||||
throw new \Exception ("Link provided to RSS Item is not a string", 500);
|
||||
$verify = new \verify ();
|
||||
$verify = new verify ();
|
||||
if (! $verify->is_URL ($link))
|
||||
throw new \Exception ("Link provided to RSS Item is not an URL", 500);
|
||||
if ($link === "")
|
||||
|
||||
Reference in New Issue
Block a user