Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-oswald committed Apr 3, 2024
1 parent 526d969 commit 9d66bbf
Show file tree
Hide file tree
Showing 46 changed files with 218 additions and 207 deletions.
2 changes: 0 additions & 2 deletions classes/local/manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
use stdClass;
use tool_objectfs\local\store\object_file_system;

defined('MOODLE_INTERNAL') || die();

/**
* [Description manager]
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class candidates_factory {
* Finder
* @param mixed $manipulator
* @param stdClass $config
*
*
* @return mixed
* @throws moodle_exception
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@

namespace tool_objectfs\local\object_manipulator\candidates;

defined('MOODLE_INTERNAL') || die();

/**
* pusher_candidates
*/
Expand Down
6 changes: 3 additions & 3 deletions classes/local/object_manipulator/logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function end_timing() {
/**
* set_action
* @param mixed $action
*
*
* @return void
*/
public function set_action($action) {
Expand All @@ -91,7 +91,7 @@ public function set_action($action) {
/**
* add_object_manipulation
* @param int $filesize
*
*
* @return void
*/
public function add_object_manipulation($filesize) {
Expand All @@ -115,7 +115,7 @@ public function log_object_manipulation() {
/**
* log_object_manipulation_query
* @param mixed $totalobjectsfound
*
*
* @return void
*/
public function log_object_manipulation_query($totalobjectsfound) {
Expand Down
2 changes: 1 addition & 1 deletion classes/local/object_manipulator/orphaner.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

/**
* Orphans records for files deleted
*
*
* Orphans {tool_objectfs_objects} records for files that have been
* deleted from the core {files} table.
*
Expand Down
4 changes: 2 additions & 2 deletions classes/local/report/log_size_report_builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class log_size_report_builder extends objectfs_report_builder {
/**
* build_report
* @param int $reportid
*
*
* @return objectfs_report
*/
public function build_report($reportid) {
Expand Down Expand Up @@ -61,7 +61,7 @@ public function build_report($reportid) {
/**
* compress_small_log_sizes
* @param mixed $stats
*
*
* @return void
*/
public function compress_small_log_sizes(&$stats) {
Expand Down
2 changes: 1 addition & 1 deletion classes/local/report/mime_type_report_builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class mime_type_report_builder extends objectfs_report_builder {
/**
* build_report
* @param int $reportid
*
*
* @return objectfs_report
*/
public function build_report($reportid) {
Expand Down
2 changes: 1 addition & 1 deletion classes/local/report/object_status_history_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class object_status_history_table extends \table_sql {

/**
* Constructor for the file status history table.
*
*
* @param string $reporttype
* @param int $reportid
*/
Expand Down
2 changes: 1 addition & 1 deletion classes/local/report/objectfs_report_builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ abstract class objectfs_report_builder {
/**
* build_report
* @param int $reportid
*
*
* @return objectfs_report
*/
abstract public function build_report($reportid);
Expand Down
10 changes: 5 additions & 5 deletions classes/local/store/azure/client.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ private function clean_sastoken($sastoken) {
/**
* get_md5_from_hash
* @param string $contenthash
*
*
* @return string
*/
private function get_md5_from_hash($contenthash) {
Expand Down Expand Up @@ -202,7 +202,7 @@ private function get_md5_from_hash($contenthash) {
* verify_objectverify_object
* @param string $contenthash
* @param string $localpath
*
*
* @return bool
*/
public function verify_object($contenthash, $localpath) {
Expand All @@ -219,7 +219,7 @@ public function verify_object($contenthash, $localpath) {
/**
* get_filepath_from_hash
* @param string $contenthash
*
*
* @return string
*/
protected function get_filepath_from_hash($contenthash) {
Expand Down Expand Up @@ -253,7 +253,7 @@ public function test_connection() {
/**
* test_permissions
* @param mixed $testdelete
*
*
* @return stdClass
*/
public function test_permissions($testdelete) {
Expand Down Expand Up @@ -307,7 +307,7 @@ public function test_permissions($testdelete) {
/**
* get_exception_details
* @param \MicrosoftAzure\Storage\Common\Exceptions\ServiceException $exception
*
*
* @return string
*/
protected function get_exception_details(\MicrosoftAzure\Storage\Common\Exceptions\ServiceException $exception) {
Expand Down
2 changes: 1 addition & 1 deletion classes/local/store/azure/file_system.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class file_system extends object_file_system {
/**
* initialise_external_client
* @param mixed $config
*
*
* @return client
*/
protected function initialise_external_client($config) {
Expand Down
Loading

0 comments on commit 9d66bbf

Please sign in to comment.