Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Conversation

@umeshnevase
Copy link

  • Fixed spacing issues and blank line issues reported by PHPCS
  • Fixed warning in debug.log
    Creation of dynamic property RetranscodeMedia::$capability is deprecated in /var/www/htdocs/wp-content/plugins/transcoder/admin/rt-retranscode-admin.php on line 82

Creation of dynamic property RetranscodeMedia::$capability is deprecated in /var/www/htdocs/wp-content/plugins/transcoder/admin/rt-retranscode-admin.php on line 82
Copy link
Contributor

@rtBot rtBot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code analysis identified issues

action-phpcs-code-review has identified potential problems in this pull request during automated scanning. We recommend reviewing the issues noted and that they are resolved.

phpcs scanning turned up:

🚫 4 errors


Powered by rtCamp's GitHub Actions Library

@@ -1 +1 @@
<?php //Silence is golden
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: You must use "/**" style comments for a file comment (Squiz.Commenting.FileComment.WrongStyle).

@@ -1 +1 @@
<?php //Silence is golden
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar).

*/
public $menu_id;

/**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed).

public $menu_id;

/**
* capability of user required to retranscode.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Doc comment short description must start with a capital letter (Generic.Commenting.DocComment.ShortNotCapital).

}

// Allow people to change what capability is required to use this feature.
$this->capability = apply_filters( 'retranscode_media_cap', 'manage_options' );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should document this in the Readme.MD

Copy link
Contributor

@Vedant-Gandhi Vedant-Gandhi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to fix the rtBot errors.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants