This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
function getDirs( $currentDir ) { | |
return array_filter( $currentDir, function ( $dir ) { | |
return is_dir( $dir ) && $dir !== '..' && $dir !== '.'; | |
} ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
function getDirs( $currentDir ) { | |
return array_filter( $currentDir, function ( $dir ) { | |
return is_dir( $dir ) && $dir !== '..' && $dir !== '.'; | |
} ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const ajaxFetch = (options, resolve, reject) => $.ajax(options) | |
.done(resolve) | |
.fail(reject); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* File holding ${NAME} class | |
* | |
#if (${NAMESPACE}) * @package ${NAMESPACE} | |
#end | |
* @since | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for package in $(ls -1); do echo $package; jq -r .version $package/package.json; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FILE: mnt/d/WordPress-Themes/themes/lightning/comments.php | |
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE | |
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
LINE 28: WARNING Mismatched placeholders is probably an error (WordPress.WP.I18n.MismatchedPlaceholders) | |
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
26: » » <h2·class="comments-title"> | |
27: » <?php | |
>> 28: » printf(·_nx(·'One·thought·on·“%2$s”',·'%1$s·thoughts·on·“%2$s”',·get_comments_number(),·'comments·title',·'lightning'·), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Class Api_Docs_Page | |
* | |
* @package My_Plugin\Routes\Endpoints | |
*/ | |
namespace My_Plugin\Tests\Routes\Endpoints; | |
use WP_REST_Request; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FILE: ...wp-graphql/src/Connection/Themes.php | |
---------------------------------------------------------------------- | |
FOUND 1 ERROR AFFECTING 1 LINE | |
---------------------------------------------------------------------- | |
1 | ERROR | Missing file doc comment | |
| | (Squiz.Commenting.FileComment.Missing) | |
---------------------------------------------------------------------- | |
FILE: ...wp-graphql/src/Connection/Comments.php | |
---------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.3' | |
services: | |
app: | |
image: wordpress:5.2.0-php7.2-fpm | |
container_name: wptest-app | |
depends_on: | |
- db | |
- redis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"require-dev": { | |
"pheromone/phpcs-security-audit": "^2.0", | |
"dealerdirect/phpcodesniffer-composer-installer": "^0.5.0", | |
"roave/security-advisories": "dev-master", | |
"phpcompatibility/php-compatibility": "^9.2", | |
"wp-coding-standards/wpcs": "^2.1" | |
}, | |
"scripts": { | |
"phpcs-i": "@php vendor/bin/phpcs -i", |