Skip to content

Commit

Permalink
Fix PSR2 coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Auditor committed Mar 22, 2018
1 parent 761fdba commit 1761df8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
8 changes: 2 additions & 6 deletions src/BigBlueButton/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,19 +159,15 @@ private function xml2object($raw_response)
$array = json_decode($json);

// Fix data model.
if (
isset($array->attendees)
) {
if (isset($array->attendees)) {
$array->attendees = (array) $array->attendees;
if ($array->attendees[0] === "\n") {
$array->attendees = [];
}
}

// Fix data model.
if (
isset($array->metadata)
) {
if (isset($array->metadata)) {
$array->metadata = (array) $array->metadata;
if ($array->metadata[0] === "\n") {
$array->metadata = [];
Expand Down
10 changes: 5 additions & 5 deletions src/BigBlueButton/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ public function addMeeting($options)
*
* @return \sanduhrs\BigBlueButton\Member\Meeting|FALSE
* A meeting object or FALSE.
*
* @throws \sanduhrs\BigBlueButton\Exception\BigBlueButtonException
*/
public function getMeeting($meetingID)
{
Expand Down Expand Up @@ -285,6 +287,8 @@ public function getRecordings()
*
* @return boolean
* The success status as TRUE.
*
* @throws \sanduhrs\BigBlueButton\Exception\BigBlueButtonException
*/
public function publishRecording($recordID)
{
Expand Down Expand Up @@ -429,13 +433,9 @@ public function getDefaultConfigXML()
* config.xml. This enables 3rd party applications to provide user-specific
* config.xml files.
*
* @param string $xml
*
* @return bool
*
* @throws \sanduhrs\BigBlueButton\Exception\BigBlueButtonException
*/
public function setDefaultConfigXML($xml)
public function setDefaultConfigXML()
{
throw new BigBlueButtonException('Not implemented,yet.');
}
Expand Down

0 comments on commit 1761df8

Please sign in to comment.