Skip to content

Conversation

@mount40
Copy link

@mount40 mount40 commented Dec 23, 2019

No description provided.

@mount40 mount40 changed the title Feature/recursive version bump Recursive version bump Dec 23, 2019
@mount40 mount40 changed the title Recursive version bump Recursive version bump for defines Dec 23, 2019
@mount40 mount40 changed the title Recursive version bump for defines Recursive version bump when using defines Dec 23, 2019
*
* @package DevriX_Starter
*/
function dx_get_assets_version( $dir ) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Add function description, do not glue it to the file description on top

functions.php Outdated
* @package DevriX_Starter
*/
function dx_get_assets_version( $dir ) {
$rii = new RecursiveIteratorIterator( new RecursiveDirectoryIterator( $dir ) );
Copy link
Contributor

Choose a reason for hiding this comment

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

Improve the variable names, $rii is not descriptive at all

functions.php Outdated
*/
function dx_get_assets_version( $dir ) {
$rii = new RecursiveIteratorIterator( new RecursiveDirectoryIterator( $dir ) );
$files = array();
Copy link
Contributor

Choose a reason for hiding this comment

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

Fix code formatting, you have to follow WP coding standards on all lines, tabs here seem wrong

functions.php Outdated
function dx_get_assets_version( $dir ) {
$rii = new RecursiveIteratorIterator( new RecursiveDirectoryIterator( $dir ) );
$files = array();
$assets_m_time = array();
Copy link
Contributor

Choose a reason for hiding this comment

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

Again improve name, what is m?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants