diff --git a/core/modules/views/src/Plugin/views/filter/Compare.php b/core/modules/views/src/Plugin/views/filter/Compare.php index cf16fc0104..2d936e5a3e 100644 --- a/core/modules/views/src/Plugin/views/filter/Compare.php +++ b/core/modules/views/src/Plugin/views/filter/Compare.php @@ -53,7 +53,7 @@ protected function fieldsOperatorOptions() { '=' => $this->t('Is equal to'), '<>' => $this->t('Is not equal to'), '>=' => $this->t('Is greater than or equal to'), - '>' => $this->t('Is greater than') + '>' => $this->t('Is greater than'), ]; } diff --git a/core/modules/views/tests/src/Kernel/Handler/FilterCompareTest.php b/core/modules/views/tests/src/Kernel/Handler/FilterCompareTest.php index 4de372c754..26ab2b535c 100644 --- a/core/modules/views/tests/src/Kernel/Handler/FilterCompareTest.php +++ b/core/modules/views/tests/src/Kernel/Handler/FilterCompareTest.php @@ -60,7 +60,7 @@ public function testCompare() { $tests[] = [ '=', [ ['name' => 'John'], - ] + ], ]; $tests[] = [ @@ -68,15 +68,15 @@ public function testCompare() { ['name' => 'George'], ['name' => 'Ringo'], ['name' => 'Paul'], - ['name' => 'Meredith'] - ] + ['name' => 'Meredith'], + ], ]; $tests[] = [ '>', [ ['name' => 'George'], ['name' => 'Ringo'], - ] + ], ]; $tests[] = [ @@ -84,14 +84,14 @@ public function testCompare() { ['name' => 'John'], ['name' => 'George'], ['name' => 'Ringo'], - ] + ], ]; $tests[] = [ '<', [ ['name' => 'Paul'], ['name' => 'Meredith'], - ] + ], ]; $tests[] = [ @@ -99,7 +99,7 @@ public function testCompare() { ['name' => 'John'], ['name' => 'Paul'], ['name' => 'Meredith'], - ] + ], ]; foreach ($tests as $parts) { diff --git a/core/modules/views/views.views.inc b/core/modules/views/views.views.inc index 0724110d48..a9f1669f45 100644 --- a/core/modules/views/views.views.inc +++ b/core/modules/views/views.views.inc @@ -128,7 +128,7 @@ function views_views_data() { 'help' => t('Compare two fields to filter the result of a view.'), 'filter' => [ 'id' => 'compare', - ] + ], ]; $data['views']['dropbutton'] = [