Skip to content

Commit ccdeb34

Browse files
committed
Fix code style
1 parent 0178d70 commit ccdeb34

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/Parameters/BaseParameters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ protected function getProperties(): array
109109
protected function getHTTPQueryArray(): array
110110
{
111111
$properties = $this->getProperties();
112-
$properties = array_filter($properties, fn ($value) => $value !== null);
112+
$properties = array_filter($properties, static fn ($value) => $value !== null);
113113

114114
return array_map(static function ($value) {
115115
if (\is_bool($value)) {

src/Parameters/CreateMeetingParameters.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,14 +447,14 @@ public function getHTTPQuery(): string
447447
// Add disabled features if any are set
448448
if (!empty($this->disabledFeatures)) {
449449
$queries = array_merge($queries, [
450-
'disabledFeatures' => implode(',', array_map(fn (Feature $disabledFeature): string => $disabledFeature->value, $this->disabledFeatures)),
450+
'disabledFeatures' => implode(',', array_map(static fn (Feature $disabledFeature): string => $disabledFeature->value, $this->disabledFeatures)),
451451
]);
452452
}
453453

454454
// Add disabled features exclude if any are set
455455
if (!empty($this->disabledFeaturesExclude)) {
456456
$queries = array_merge($queries, [
457-
'disabledFeaturesExclude' => implode(',', array_map(fn (Feature $disabledFeatureExclude): string => $disabledFeatureExclude->value, $this->disabledFeaturesExclude)),
457+
'disabledFeaturesExclude' => implode(',', array_map(static fn (Feature $disabledFeatureExclude): string => $disabledFeatureExclude->value, $this->disabledFeaturesExclude)),
458458
]);
459459
}
460460

tests/unit/BigBlueButtonTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public function testCreate(): void
249249
</response>';
250250

251251
$this->transport->method('request')
252-
->with(self::callback(function ($request) {
252+
->with(self::callback(static function ($request) {
253253
$payload = $request->getPayload();
254254

255255
return $payload === '';
@@ -288,7 +288,7 @@ public function testCreateWithPresentation(): void
288288
</response>';
289289

290290
$this->transport->method('request')
291-
->with(self::callback(function ($request) {
291+
->with(self::callback(static function ($request) {
292292
$payload = $request->getPayload();
293293
$xml = simplexml_load_string($payload);
294294

0 commit comments

Comments
 (0)