Skip to content

Commit 9d66bbf

Browse files
committed
linting
1 parent 526d969 commit 9d66bbf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+218
-207
lines changed

classes/local/manager.php

-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
use stdClass;
2929
use tool_objectfs\local\store\object_file_system;
3030

31-
defined('MOODLE_INTERNAL') || die();
32-
3331
/**
3432
* [Description manager]
3533
*/

classes/local/object_manipulator/candidates/candidates_factory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class candidates_factory {
5252
* Finder
5353
* @param mixed $manipulator
5454
* @param stdClass $config
55-
*
55+
*
5656
* @return mixed
5757
* @throws moodle_exception
5858
*/

classes/local/object_manipulator/candidates/pusher_candidates.php

-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424

2525
namespace tool_objectfs\local\object_manipulator\candidates;
2626

27-
defined('MOODLE_INTERNAL') || die();
28-
2927
/**
3028
* pusher_candidates
3129
*/

classes/local/object_manipulator/logger.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function end_timing() {
8181
/**
8282
* set_action
8383
* @param mixed $action
84-
*
84+
*
8585
* @return void
8686
*/
8787
public function set_action($action) {
@@ -91,7 +91,7 @@ public function set_action($action) {
9191
/**
9292
* add_object_manipulation
9393
* @param int $filesize
94-
*
94+
*
9595
* @return void
9696
*/
9797
public function add_object_manipulation($filesize) {
@@ -115,7 +115,7 @@ public function log_object_manipulation() {
115115
/**
116116
* log_object_manipulation_query
117117
* @param mixed $totalobjectsfound
118-
*
118+
*
119119
* @return void
120120
*/
121121
public function log_object_manipulation_query($totalobjectsfound) {

classes/local/object_manipulator/orphaner.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
/**
1818
* Orphans records for files deleted
19-
*
19+
*
2020
* Orphans {tool_objectfs_objects} records for files that have been
2121
* deleted from the core {files} table.
2222
*

classes/local/report/log_size_report_builder.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class log_size_report_builder extends objectfs_report_builder {
3333
/**
3434
* build_report
3535
* @param int $reportid
36-
*
36+
*
3737
* @return objectfs_report
3838
*/
3939
public function build_report($reportid) {
@@ -61,7 +61,7 @@ public function build_report($reportid) {
6161
/**
6262
* compress_small_log_sizes
6363
* @param mixed $stats
64-
*
64+
*
6565
* @return void
6666
*/
6767
public function compress_small_log_sizes(&$stats) {

classes/local/report/mime_type_report_builder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class mime_type_report_builder extends objectfs_report_builder {
3333
/**
3434
* build_report
3535
* @param int $reportid
36-
*
36+
*
3737
* @return objectfs_report
3838
*/
3939
public function build_report($reportid) {

classes/local/report/object_status_history_table.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class object_status_history_table extends \table_sql {
5454

5555
/**
5656
* Constructor for the file status history table.
57-
*
57+
*
5858
* @param string $reporttype
5959
* @param int $reportid
6060
*/

classes/local/report/objectfs_report_builder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ abstract class objectfs_report_builder {
3333
/**
3434
* build_report
3535
* @param int $reportid
36-
*
36+
*
3737
* @return objectfs_report
3838
*/
3939
abstract public function build_report($reportid);

classes/local/store/azure/client.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ private function clean_sastoken($sastoken) {
174174
/**
175175
* get_md5_from_hash
176176
* @param string $contenthash
177-
*
177+
*
178178
* @return string
179179
*/
180180
private function get_md5_from_hash($contenthash) {
@@ -202,7 +202,7 @@ private function get_md5_from_hash($contenthash) {
202202
* verify_objectverify_object
203203
* @param string $contenthash
204204
* @param string $localpath
205-
*
205+
*
206206
* @return bool
207207
*/
208208
public function verify_object($contenthash, $localpath) {
@@ -219,7 +219,7 @@ public function verify_object($contenthash, $localpath) {
219219
/**
220220
* get_filepath_from_hash
221221
* @param string $contenthash
222-
*
222+
*
223223
* @return string
224224
*/
225225
protected function get_filepath_from_hash($contenthash) {
@@ -253,7 +253,7 @@ public function test_connection() {
253253
/**
254254
* test_permissions
255255
* @param mixed $testdelete
256-
*
256+
*
257257
* @return stdClass
258258
*/
259259
public function test_permissions($testdelete) {
@@ -307,7 +307,7 @@ public function test_permissions($testdelete) {
307307
/**
308308
* get_exception_details
309309
* @param \MicrosoftAzure\Storage\Common\Exceptions\ServiceException $exception
310-
*
310+
*
311311
* @return string
312312
*/
313313
protected function get_exception_details(\MicrosoftAzure\Storage\Common\Exceptions\ServiceException $exception) {

classes/local/store/azure/file_system.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class file_system extends object_file_system {
3939
/**
4040
* initialise_external_client
4141
* @param mixed $config
42-
*
42+
*
4343
* @return client
4444
*/
4545
protected function initialise_external_client($config) {

0 commit comments

Comments
 (0)