From 32ae2913c547954fbba99aa4f3a76f69413fc021 Mon Sep 17 00:00:00 2001 From: Jaimeson Waugh Date: Fri, 10 May 2019 09:10:43 -0700 Subject: [PATCH] Get rid o' debug messages --- src/WebpageLinksList.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/WebpageLinksList.php b/src/WebpageLinksList.php index aff9f19..678c1d6 100644 --- a/src/WebpageLinksList.php +++ b/src/WebpageLinksList.php @@ -58,8 +58,7 @@ private function generateList() : void } catch ( \Unirest\Exception $e ) { - // Do nothing. - echo $uri; + // Do nothing on error. } } @@ -91,15 +90,8 @@ private function tryURL( string $url, URI $host ) : void $this->list_count++; $this->generateListFromURL( $host, $response ); } - catch ( \Unirest\Exception $e ) - { - // We should just ignore broken links & carry on. - return; - } catch ( \Exception $e ) { - echo $e->getMessage(); - var_dump( $url ); // We should just ignore broken links & carry on. return; }