material-design-for-wordpress icon indicating copy to clipboard operation
material-design-for-wordpress copied to clipboard

Update theme to follow plugin's code standards

Open emeaguiar opened this issue 4 years ago • 2 comments

Feature description

With the merge of the theme into the repo several errors are displayed by the Sniffer, these need to be updated to pass the checks, example:

theme/template-parts/menu-tabs.php:43:25: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/search.php:40:67: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/template-parts/post-nav-links.php:26:18: warning - get_previous_post_link() is highly discouraged due to not being cached; please use wpcom_vip_get_adjacent_post() instead. (WordPressVIPMinimum.Functions.RestrictedFunctions.get_adjacent_post_get_previous_post_link)
theme/template-parts/post-nav-links.php:27:18: warning - get_next_post_link() is highly discouraged due to not being cached; please use wpcom_vip_get_adjacent_post() instead. (WordPressVIPMinimum.Functions.RestrictedFunctions.get_adjacent_post_get_next_post_link)
theme/searchform.php:38:123: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/template-parts/content-none.php:32:94: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/template-parts/content-none.php:41:99: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/template-parts/content-none.php:42:21: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/template-parts/content-none.php:43:32: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/template-parts/content-none.php:44:39: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/template-parts/content-none.php:52:130: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/template-parts/content-none.php:54:125: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/admin.php:51:34: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/admin.php:52:47: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/admin.php:55:35: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/admin.php:88:36: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/admin.php:115:55: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/admin.php:126:25: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/admin.php:138:29: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/admin.php:142:21: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/inc/admin.php:142:35: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/inc/admin.php:142:52: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/inc/admin.php:155:16: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/inc/admin.php:156:9: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/inc/admin.php:157:58: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/admin.php:163:15: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/inc/widgets/class-wp-widget-categories.php:48:97: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/widgets/class-wp-widget-categories.php:63:21: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/inc/widgets/class-wp-widget-categories.php:76:76: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/404.php:36:107: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/404.php:40:187: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/class-menu-drawer-walker.php:38:25: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/inc/class-menu-drawer-walker.php:52:68: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/inc/widgets/class-wp-widget-meta.php:46:91: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/widgets/class-wp-widget-meta.php:60:136: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/widgets/class-wp-widget-meta.php:61:146: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/widgets/class-wp-widget-meta.php:76:68: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/widgets/class-wp-widget-meta.php:77:50: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/template-parts/content.php:49:64: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/template-parts/content.php:84:37: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/template-parts/posts-navigation.php:39:34: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/template-parts/posts-navigation.php:45:37: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/template-parts/posts-navigation.php:51:33: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/template-parts/posts-navigation.php:57:33: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/template-parts/posts-navigation.php:77:64: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/template-parts/posts-navigation.php:92:52: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/template-parts/posts-navigation.php:105:48: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/template-parts/search-archive.php:36:107: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/template-parts/search-archive.php:44:78: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/template-parts/drawer.php:49:17: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/inc/class-menu-walker.php:38:25: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/inc/class-menu-walker.php:52:68: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/template-parts/back-to-top.php:34:94: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/widgets/class-wp-widget-pages.php:44:92: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/widgets/class-wp-widget-pages.php:78:17: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/template-parts/search-header.php:34:63: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/template-parts/search-header.php:35:53: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/template-parts/search-header.php:42:69: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/template-parts/search-header.php:44:185: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/customizer/header-footer.php:47:59: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/customizer/header-footer.php:64:51: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/customizer/header-footer.php:69:66: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/customizer/header-footer.php:74:76: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/customizer/header-footer.php:76:106: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/customizer/header-footer.php:80:60: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/customizer/header-footer.php:83:55: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/customizer/header-footer.php:84:52: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/customizer/header-footer.php:90:60: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/customizer/header-footer.php:91:149: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/customizer/header-footer.php:97:49: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/customizer/header-footer.php:103:54: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/customizer/header-footer.php:109:66: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/customizer/header-footer.php:148:13: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/inc/customizer/header-footer.php:159:13: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/inc/customizer/header-footer.php:170:13: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/inc/customizer/header-footer.php:181:13: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/inc/customizer/header-footer.php:192:13: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/inc/customizer/header-footer.php:242:16: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/inc/customizer/header-footer.php:242:60: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/customizer/header-footer.php:255:13: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/inc/customizer/header-footer.php:257:113: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/template-parts/single-page.php:42:13: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/template-parts/single-page.php:43:121: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/template-parts/single-page.php:57:80: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/template-parts/single-page.php:58:25: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/template-parts/single-page.php:59:39: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/template-parts/single-page.php:60:44: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/template-parts/menu-header.php:51:152: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/comments.php:58:52: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/comments.php:75:37: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/comments.php:91:38: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/comments.php:106:40: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/comments.php:119:36: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/comments.php:153:102: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/comments.php:167:56: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/comments.php:171:131: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/comments.php:179:17: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/comments.php:194:78: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/template-parts/single.php:61:90: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/template-parts/single.php:62:21: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/template-parts/single.php:63:35: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/template-parts/single.php:64:40: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/template-parts/single.php:73:13: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/template-parts/single.php:74:121: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/widgets/class-wp-widget-recent-comments.php:50:106: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/widgets/class-wp-widget-recent-comments.php:74:17: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/inc/widgets/class-wp-widget-recent-comments.php:98:60: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/template-parts/site-title.php:43:84: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/template-parts/site-title.php:60:84: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/customizer/layout.php:47:52: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/customizer/layout.php:101:60: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/customizer/layout.php:104:49: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/customizer/layout.php:105:51: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/customizer/layout.php:110:54: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/customizer/layout.php:113:48: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/customizer/layout.php:114:54: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/customizer/layout.php:119:70: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/customizer/layout.php:125:58: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/customizer/layout.php:131:56: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/customizer/layout.php:137:57: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/customizer/layout.php:143:54: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/customizer/layout.php:149:58: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/customizer/layout.php:155:71: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/customizer/layout.php:159:55: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/customizer/layout.php:160:53: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/widgets/class-wp-widget-recent-posts.php:48:103: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/widgets/class-wp-widget-recent-posts.php:73:17: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/inc/widgets/class-wp-widget-recent-posts.php:97:102: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/customizer/menu.php:51:88: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/customizer/menu.php:68:35: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/customizer/menu.php:69:63: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/functions.php:65:13: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/functions.php:66:49: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/functions.php:67:51: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/functions.php:77:13: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/functions.php:96:13: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/functions.php:134:9: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/functions.php:135:59: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/functions.php:137:65: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/functions.php:146:9: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/functions.php:147:60: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/functions.php:149:66: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/functions.php:166:77: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/functions.php:168:141: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/functions.php:182:120: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/inc/jetpack.php:39:9: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/inc/jetpack.php:52:9: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/inc/jetpack.php:53:34: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/inc/jetpack.php:61:34: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/header.php:45:102: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/template-functions.php:66:24: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/inc/template-functions.php:85:17: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/inc/widgets/class-wp-widget-rss.php:58:51: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/inc/widgets/class-wp-widget-rss.php:79:77: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/widgets/class-wp-widget-rss.php:112:58: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/inc/widgets/class-wp-widget-rss.php:124:64: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/widgets/class-wp-widget-rss.php:129:25: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/inc/widgets/class-wp-widget-rss.php:146:125: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/widgets/class-wp-widget-rss.php:162:50: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/template-tags.php:68:61: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/template-tags.php:139:60: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/template-tags.php:178:94: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/template-tags.php:179:25: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/inc/template-tags.php:180:39: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/inc/template-tags.php:181:44: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/inc/template-tags.php:195:76: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/template-tags.php:238:17: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/inc/template-tags.php:240:25: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/inc/widgets/class-wp-widget-archives.php:44:95: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/widgets/class-wp-widget-archives.php:77:17: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)
theme/inc/widgets/class-wp-widget-archives.php:87:57: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/widgets/class-wp-widget-archives.php:90:58: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/widgets/class-wp-widget-archives.php:93:56: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/widgets/class-wp-widget-archives.php:96:57: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/widgets/class-wp-widget-archives.php:99:57: error - Mismatched text domain. Expected 'material-design' but got 'material-design-google'. (WordPress.WP.I18n.TextDomainMismatch)
theme/inc/widgets/class-wp-widget-archives.php:142:21: error - Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found)

Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

Implementation brief

QA testing instructions

Demo

Changelog entry

emeaguiar avatar Apr 01 '21 17:04 emeaguiar

@emeaguiar Which command are you using to run the check ? The theme has a different phpcs standard file, the command for the theme should be phpcs ./theme --standard=phpcs-theme.xml. See https://github.com/material-components/material-design-for-wordpress/blob/develop/composer.json#L42

ravichdev avatar Apr 01 '21 17:04 ravichdev

@ravichdev this happened in commit when merging develop into a branch

emeaguiar avatar Apr 01 '21 18:04 emeaguiar