Skip to content

Commit 6a25974

Browse files
committed
fixed travis-ci
1 parent 1a42c34 commit 6a25974

File tree

3 files changed

+35
-34
lines changed

3 files changed

+35
-34
lines changed

src/API.class.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ public function createPlaylist($playlistName)
101101
$resp = $this->request('/bot/playlists', 'POST', [
102102
"name" => $playlistName,
103103
]);
104+
$resp['name'] = $playlistName;
104105
return new Playlist($this->token, $this->url, $this->timeout, $resp);
105106
}
106107

src/Instance.class.php

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Instance extends RestClient
2626
* Instance stores the initial received instance data
2727
* @var array
2828
*/
29-
private $instance = null;
29+
private $instance = null;
3030
/**
3131
* __construct
3232
*
@@ -68,46 +68,46 @@ public function isRunning()
6868
*
6969
* @return string instance backend
7070
*/
71-
public function getBackend()
72-
{
73-
return $this->instance['backend'];
74-
}
71+
public function getBackend()
72+
{
73+
return $this->instance['backend'];
74+
}
7575
/**
7676
* getNick returns the Bot's nickname
7777
*
7878
* @return string nick
7979
*/
80-
public function getNick()
81-
{
82-
return $this->instance['nick'];
83-
}
80+
public function getNick()
81+
{
82+
return $this->instance['nick'];
83+
}
8484
/**
8585
* getName returns the Bot's name
8686
*
8787
* @return string name
8888
*/
89-
public function getName()
90-
{
91-
return $this->instance['name'];
92-
}
89+
public function getName()
90+
{
91+
return $this->instance['name'];
92+
}
9393
/**
9494
* getServerHost returns the Bot's server host
9595
*
9696
* @return string host
9797
*/
98-
public function getServerHost()
99-
{
100-
return $this->instance['serverHost'];
101-
}
98+
public function getServerHost()
99+
{
100+
return $this->instance['serverHost'];
101+
}
102102
/**
103103
* getServerPort returns the Bot's server port
104104
*
105105
* @return string port
106106
*/
107-
public function getServerPort()
108-
{
109-
return $this->instance['serverPort'];
110-
}
107+
public function getServerPort()
108+
{
109+
return $this->instance['serverPort'];
110+
}
111111
/**
112112
* delete deletes the instance
113113
*

src/Playlist.class.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Playlist extends RestClient
2626
* Playlist stores the initial received playlist data
2727
* @var array
2828
*/
29-
private $playlist = null;
29+
private $playlist = null;
3030
/**
3131
* __construct
3232
*
@@ -71,28 +71,28 @@ public function getPlaylistTracks()
7171
*
7272
* @return string name
7373
*/
74-
public function getName()
75-
{
76-
return array_key_exists('name', $this->playlist)?$this->playlist['name']:'';
77-
}
74+
public function getName()
75+
{
76+
return array_key_exists('name', $this->playlist)?$this->playlist['name']:'';
77+
}
7878
/**
7979
* getEntries returns the track entries
8080
*
8181
* @return array track entries
8282
*/
83-
public function getEntries()
84-
{
85-
return array_key_exists('entries', $this->playlist)?$this->playlist['entries']:'';
86-
}
83+
public function getEntries()
84+
{
85+
return array_key_exists('entries', $this->playlist)?$this->playlist['entries']:'';
86+
}
8787
/**
8888
* getSource returns the source of the playlist
8989
*
9090
* @return string source
9191
*/
92-
public function getSource()
93-
{
94-
return array_key_exists('source', $this->playlist)?$this->playlist['source']:'';
95-
}
92+
public function getSource()
93+
{
94+
return array_key_exists('source', $this->playlist)?$this->playlist['source']:'';
95+
}
9696

9797
/**
9898
* addPlaylistTrack adds a track to the playlist

0 commit comments

Comments
 (0)