From c53210b434ddfc928f77859e4b0f6b627479835b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Mon, 29 Aug 2016 13:01:44 +0200 Subject: [PATCH] [LinkedInCompanyBridge] add Bridge suffix to class name + code simplification MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- bridges/{LinkedInCompany.php => LinkedInCompanyBridge.php} | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) rename bridges/{LinkedInCompany.php => LinkedInCompanyBridge.php} (82%) diff --git a/bridges/LinkedInCompany.php b/bridges/LinkedInCompanyBridge.php similarity index 82% rename from bridges/LinkedInCompany.php rename to bridges/LinkedInCompanyBridge.php index ccdf16c8..e23f9d48 100644 --- a/bridges/LinkedInCompany.php +++ b/bridges/LinkedInCompanyBridge.php @@ -1,5 +1,5 @@ getInput('c'); + $link = $this->uri.'company/'.$this->getInput('c'); - $html = $this->getSimpleHTMLDOM($link) or $this->returnServerError('Could not request LinkedIn.'); + $html = $this->getSimpleHTMLDOM($link) + or $this->returnServerError('Could not request LinkedIn.'); foreach($html->find('//*[@id="my-feed-post"]/li') as $element) { $title = $element->find('span.share-body', 0)->innertext;