Skip to content

Commit 902133b

Browse files
committed
removed underscores according to PSR
1 parent 6347ef9 commit 902133b

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/Pinger.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,57 +24,57 @@ public function __construct() {
2424

2525
public function pingYandex($title, $url, $rss = null)
2626
{
27-
$xml = $this->_getXml($title, $url, $rss);
27+
$xml = $this->getXml($title, $url, $rss);
2828

29-
return $this->_sendPing('http://ping.blogs.yandex.ru', $xml);
29+
return $this->sendPing('http://ping.blogs.yandex.ru', $xml);
3030
}
3131

3232
public function pingGoogle($title, $url, $rss = null)
3333
{
34-
$xml = $this->_getXml($title, $url, $rss);
34+
$xml = $this->getXml($title, $url, $rss);
3535

36-
return $this->_sendPing('http://blogsearch.google.com/ping/RPC2', $xml);
36+
return $this->sendPing('http://blogsearch.google.com/ping/RPC2', $xml);
3737
}
3838

3939
public function pingYahoo($title, $url, $rss = null)
4040
{
41-
$xml = $this->_getXml($title, $url, $rss);
41+
$xml = $this->getXml($title, $url, $rss);
4242

43-
return $this->_sendPing('http://api.my.yahoo.com/RPC2', $xml);
43+
return $this->sendPing('http://api.my.yahoo.com/RPC2', $xml);
4444
}
4545

4646
public function pingFeedburner($title, $url, $rss = null)
4747
{
48-
$xml = $this->_getXml($title, $url, $rss);
48+
$xml = $this->getXml($title, $url, $rss);
4949

50-
return $this->_sendPing('http://ping.feedburner.com', $xml);
50+
return $this->sendPing('http://ping.feedburner.com', $xml);
5151
}
5252

5353
public function pingWeblogs($title, $url, $rss = null)
5454
{
55-
$xml = $this->_getXml($title, $url, $rss);
55+
$xml = $this->getXml($title, $url, $rss);
5656

57-
return $this->_sendPing('http://ping.weblogs.se/', $xml);
57+
return $this->sendPing('http://ping.weblogs.se/', $xml);
5858
}
5959

6060
public function ping($service_url, $title, $url, $rss = null)
6161
{
62-
$xml = $this->_getXml($title, $url, $rss);
62+
$xml = $this->getXml($title, $url, $rss);
6363

64-
return $this->_sendPing($service_url, $xml);
64+
return $this->sendPing($service_url, $xml);
6565
}
6666

6767
public function pingAll($title, $url, $rss = null)
6868
{
69-
$xml = $this->_getXml($title, $url, $rss);
69+
$xml = $this->getXml($title, $url, $rss);
7070

7171
foreach ($this->services as $service) {
72-
$this->_sendPing($service, $xml);
72+
$this->sendPing($service, $xml);
7373
}
7474
return true;
7575
}
7676

77-
private function _getXml($title, $url, $rss = null)
77+
private function getXml($title, $url, $rss = null)
7878
{
7979
$data = [
8080
'title' => $title,
@@ -86,7 +86,7 @@ private function _getXml($title, $url, $rss = null)
8686
return view('laravel-pinger::xml', $data)->render();
8787
}
8888

89-
private function _sendPing($url, $post)
89+
private function sendPing($url, $post)
9090
{
9191
$ch = curl_init();
9292
curl_setopt($ch, CURLOPT_URL, $url);

0 commit comments

Comments
 (0)