Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
rdebleu committed Mar 28, 2024
1 parent d47f5af commit 2a1859f
Show file tree
Hide file tree
Showing 11 changed files with 3 additions and 14 deletions.
1 change: 0 additions & 1 deletion classes/privacy/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class provider implements \core_privacy\local\metadata\null_provider {

/**
* Get the language string identifier with the component's language
* file to explain why this plugin stores no data.
Expand Down
1 change: 0 additions & 1 deletion lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class repository_s3bucket extends repository {

/** @var _s3client s3 client object */
private $_s3client;

Expand Down
1 change: 0 additions & 1 deletion tests/behat/behat_repository_s3bucket.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class behat_repository_s3bucket extends behat_base {

/**
* Enable s3 bucket.
*
Expand Down
1 change: 0 additions & 1 deletion tests/behatstep_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
final class behatstep_test extends \advanced_testcase {

/**
* Basic test of step.
*
Expand Down
1 change: 0 additions & 1 deletion tests/delete_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
final class delete_test extends \advanced_testcase {

/**
* Test deleting a s3 bucket.
* @covers \repository_s3bucket
Expand Down
3 changes: 1 addition & 2 deletions tests/form_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
defined('MOODLE_INTERNAL') || die();

global $CFG;
require_once($CFG->libdir. '/formslib.php');
require_once($CFG->libdir . '/formslib.php');
require_once($CFG->dirroot . '/repository/lib.php');
require_once($CFG->dirroot . '/repository/s3bucket/lib.php');

Expand All @@ -40,7 +40,6 @@
* @coversDefaultClass \repository_s3bucket
*/
final class form_test extends \advanced_testcase {

/** @var int repo */
protected $repo;

Expand Down
1 change: 0 additions & 1 deletion tests/generator/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class repository_s3bucket_generator extends testing_repository_generator {

/**
* Fill in type record defaults.
*
Expand Down
1 change: 0 additions & 1 deletion tests/generator_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
final class generator_test extends \advanced_testcase {

/**
* Create type and instance.
*/
Expand Down
3 changes: 1 addition & 2 deletions tests/mock_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
final class mock_test extends \advanced_testcase {

/**
* Create type and instance.
*/
Expand Down Expand Up @@ -105,7 +104,7 @@ public function test_listobjects(): void {
->setMethods(['getObject'])
->setConstructorArgs(['key', 'secret'])
->getMock();
$client->expects( $this->once())
$client->expects($this->once())
->method('getObject')
->with(['Bucket' => 'testbucket', 'key' => 'key'])
->will($this->returnValue([]));
Expand Down
3 changes: 1 addition & 2 deletions tests/other_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
defined('MOODLE_INTERNAL') || die();

global $CFG;
require_once($CFG->libdir. '/formslib.php');
require_once($CFG->libdir . '/formslib.php');
require_once($CFG->dirroot . '/repository/lib.php');
require_once($CFG->dirroot . '/repository/s3bucket/lib.php');

Expand All @@ -38,7 +38,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
final class other_test extends \advanced_testcase {

/** @var int repo */
protected $repo;

Expand Down
1 change: 0 additions & 1 deletion tests/privacy/privacy_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
final class privacy_test extends provider_testcase {

/**
* Test privacy.
* @covers \repository_s3bucket\privacy\provider
Expand Down

0 comments on commit 2a1859f

Please sign in to comment.