composer global require "squizlabs/php_codesniffer=*"
composer global require "wp-coding-standards/wpcs"
phpcs --config-set installed_paths %APPDATA%\Composer\vendor\wp-coding-standards\wpcs
| /** | |
| * Check if Gutenberg is active. | |
| * Must be used not earlier than plugins_loaded action fired. | |
| * | |
| * @return bool | |
| */ | |
| private function is_gutenberg_active() { | |
| $gutenberg = false; | |
| $block_editor = false; |
| import java.util.*; | |
| import java.io.*; | |
| import java.security.*; | |
| public class ChangePassword | |
| { | |
| private final static JKS j = new JKS(); | |
| public static void main(String[] args) throws Exception | |
| { |
| import 'dart:developer'; | |
| /// begin_library_part | |
| /// | |
| /// When writing this example, DartPad didn't support (many/almost all) custom packages | |
| /// If you want to directly check for the related code (not the library), | |
| /// then please search (in this DartPad) for this keyword: begin_example_part | |
| import 'dart:async'; |
| import 'package:flutter/material.dart'; | |
| /// begin_library_part | |
| /// | |
| /// When writing this example, DartPad didn't support (many/almost all) custom packages | |
| /// If you want to directly check for the related code (not the library), | |
| /// then please search (in this DartPad) for this keyword: begin_example_part | |
| enum EasyButtonState { | |
| idle, |
| /** | |
| * Font Awesome Free | |
| * | |
| * https://fontawesome.com/cheatsheet/free/solid | |
| * https://fontawesome.com/cheatsheet/free/regular | |
| * https://fontawesome.com/cheatsheet/free/brands | |
| * | |
| * Visit pages above, paste this code to the console and enter. | |
| * Copy the result and beautify it in https://codebeautify.org/jsonviewer | |
| */ |
| root = true | |
| [*] | |
| indent_style = tab | |
| end_of_line = lf | |
| charset = utf-8 | |
| [*.{php,html}] | |
| indent_size = 4 |
| <?php | |
| $manager_role = [ | |
| // 'switch_themes' => true, | |
| // 'edit_themes' => true, | |
| // 'activate_plugins' => true, | |
| // 'edit_plugins' => true, | |
| 'edit_users' => true, | |
| // 'edit_files' => true, | |
| // 'manage_options' => true, | |
| 'moderate_comments' => true, |
| <?php | |
| $admin_role = [ | |
| 'switch_themes' => true, | |
| 'edit_themes' => true, | |
| 'activate_plugins' => true, | |
| 'edit_plugins' => true, | |
| 'edit_users' => true, | |
| 'edit_files' => true, | |
| 'manage_options' => true, | |
| 'moderate_comments' => true, |