Skip to content

Commit 6448395

Browse files
committed
Fix CreateMeetingParameters and use PHP unit 6 to support PHP 7.0, 7.1 and 7.2
1 parent 0bc7072 commit 6448395

4 files changed

Lines changed: 14 additions & 8 deletions

File tree

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ php:
77
- '7.0'
88
- '7.1'
99
- '7.2'
10+
- '7.3'
1011
- hhvm
1112
- nightly
1213

@@ -15,6 +16,7 @@ matrix:
1516
allow_failures:
1617
- php: 5.4
1718
- php: 5.5
19+
- php: 5.6
1820

1921
env:
2022
global:

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
[![PHP 7](https://img.shields.io/badge/php-7-8892BF.svg?style=flat-square)](https://php.net/)
1111
[![PHP 7.1](https://img.shields.io/badge/php-7.1-8892BF.svg?style=flat-square)](https://php.net/)
1212
[![PHP 7.2](https://img.shields.io/badge/php-7.2-8892BF.svg?style=flat-square)](https://php.net/)
13+
[![PHP 7.3](https://img.shields.io/badge/php-7.3-8892BF.svg?style=flat-square)](https://php.net/)
1314

1415
# BigBlueButton API for PHP
1516

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
3030
"php": ">=7.0",
3131
"ext-mbstring": "*",
3232
"composer/composer": "1.7.*@dev",
33-
"phpunit/phpunit": "7.1.*",
33+
"phpunit/phpunit": "6.*",
3434
"fzaninotto/faker": "~1.7.1",
3535
"friendsofphp/php-cs-fixer": "~2.11",
3636
"squizlabs/php_codesniffer": "3.*",
37-
"satooshi/php-coveralls": "2.*"
37+
"php-coveralls/php-coveralls": "2.1.*"
3838
},
3939
"autoload": {
4040
"psr-4": {

src/Parameters/CreateMeetingParameters.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
* You should have received a copy of the GNU Lesser General Public License along
1717
* with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
1818
*/
19-
2019
namespace BigBlueButton\Parameters;
2120

2221
/**
@@ -445,12 +444,13 @@ public function isWebcamsOnlyForModerator()
445444
}
446445

447446
/**
448-
* @param bool $webcamsOnlyForModerator
447+
* @param bool $webcamsOnlyForModerator
449448
* @return CreateMeetingParameters
450449
*/
451450
public function setWebcamsOnlyForModerator($webcamsOnlyForModerator)
452451
{
453452
$this->webcamsOnlyForModerator = $webcamsOnlyForModerator;
453+
454454
return $this;
455455
}
456456

@@ -463,12 +463,13 @@ public function getLogo()
463463
}
464464

465465
/**
466-
* @param string $logo
466+
* @param string $logo
467467
* @return CreateMeetingParameters
468468
*/
469469
public function setLogo($logo)
470470
{
471471
$this->logo = $logo;
472+
472473
return $this;
473474
}
474475

@@ -481,12 +482,13 @@ public function getCopyright()
481482
}
482483

483484
/**
484-
* @param string $copyright
485+
* @param string $copyright
485486
* @return CreateMeetingParameters
486487
*/
487488
public function setCopyright($copyright)
488489
{
489490
$this->copyright = $copyright;
491+
490492
return $this;
491493
}
492494

@@ -499,12 +501,13 @@ public function isMuteOnStart()
499501
}
500502

501503
/**
502-
* @param bool $muteOnStart
504+
* @param bool $muteOnStart
503505
* @return CreateMeetingParameters
504506
*/
505507
public function setMuteOnStart($muteOnStart)
506508
{
507509
$this->muteOnStart = $muteOnStart;
510+
508511
return $this;
509512
}
510513

@@ -574,7 +577,7 @@ public function getHTTPQuery()
574577
'allowStartStopRecording' => $this->allowStartStopRecording ? 'true' : 'false',
575578
'welcome' => trim($this->welcomeMessage),
576579
'moderatorOnlyMessage' => trim($this->moderatorOnlyMessage),
577-
'webcamsOnlyForModerator' => $this->webcamsOnlyForModerator ? ? 'true' : 'false',
580+
'webcamsOnlyForModerator' => $this->webcamsOnlyForModerator ? 'true' : 'false',
578581
'logo' => $this->logo,
579582
'copyright' => $this->copyright,
580583
'muteOnStart' => $this->muteOnStart,

0 commit comments

Comments
 (0)