Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHPCS-specific improvements #2914

Merged
merged 5 commits into from
Oct 11, 2017
Merged

PHPCS-specific improvements #2914

merged 5 commits into from
Oct 11, 2017

Conversation

tfrommen
Copy link
Member

@tfrommen tfrommen commented Oct 7, 2017

Description

This pull requests updated PHPCS and adjacent dependencies, improves (as in cleaning up) the PHPCS config file, and adapts the PHP code according to the (new/changed) rules.

How Has This Been Tested?

$ composer install && ./vendor/bin/phpcs

Types of changes

  • Update PHP dependencies.
  • Improve PHPCS config file.
  • Adapt PHP code.

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows has proper inline documentation.

Fix formatting.
Set text domain via config value.
Remove obsolete rule exclusion.
@pento
Copy link
Member

pento commented Oct 9, 2017

@tfrommen: PHPCS just merged some changes that will probably cause more PHP code tweaks, could you update this PR?

@tfrommen
Copy link
Member Author

I just did, @pento. 👍

@pento
Copy link
Member

pento commented Oct 10, 2017

Nice! LGTM.

@codecov
Copy link

codecov bot commented Oct 10, 2017

Codecov Report

Merging #2914 into master will decrease coverage by 0.13%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2914      +/-   ##
==========================================
- Coverage   34.07%   33.94%   -0.14%     
==========================================
  Files         192      193       +1     
  Lines        5675     5700      +25     
  Branches      996     1000       +4     
==========================================
+ Hits         1934     1935       +1     
- Misses       3165     3185      +20     
- Partials      576      580       +4
Impacted Files Coverage Δ
editor/actions.js 38.88% <0%> (-2.29%) ⬇️
blocks/library/audio/index.js 12.12% <0%> (-0.79%) ⬇️
blocks/library/gallery/block.js 11.11% <0%> (-0.66%) ⬇️
editor/block-settings-menu/index.js 0% <0%> (ø) ⬆️
editor/sidebar/header.js 0% <0%> (ø) ⬆️
editor/header/index.js 0% <0%> (ø) ⬆️
editor/index.js 0% <0%> (ø) ⬆️
editor/modes/visual-editor/index.js 0% <0%> (ø) ⬆️
editor/block-settings-menu/content.js 0% <0%> (ø)
components/dropdown/index.js 87.5% <0%> (+0.83%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 27cd1f5...b86d412. Read the comment docs.

@pento pento merged commit 25a2003 into WordPress:master Oct 11, 2017
@pento pento added this to the Beta 1.5 milestone Oct 11, 2017
@pento pento added the [Type] Build Tooling Issues or PRs related to build tooling label Oct 11, 2017
DevinWalker added a commit to DevinWalker/gutenberg that referenced this pull request Oct 12, 2017
* master: (45 commits)
  Parser: Hide the core namespace in serialised data (WordPress#2950)
  fix: Undefined index warning (WordPress#2982)
  navigation via keydown
  PHPCS improvements (WordPress#2914)
  Update/html block description (WordPress#2917)
  Framework: Merge EditorSettingsProvider into EditorProvider
  Framework: Move the store initialization to a dedicated component
  Rotate header ellipsis to match block ellipsis
  add/459: Added support for ins, sub and sup
  Refresh nonce with heartbeat (WordPress#2790)
  Paste: add table support
  Bump version to 1.4.0. (WordPress#2954)
  Blocks: The custom classname should be persisted properly in the block's comment
  Editor: Fix the scroll position when reordering blocks
  Polish spacing in block ellipsis menu (WordPress#2955)
  Editor: HTML Editor per block (WordPress#2797)
  Show most frequently used blocks next to inserter (WordPress#2877)
  add/459: Added light grey background to selected inline boundaries
  Extend inline boundaries to other elements
  Move markdown fix to own plugin-compatibility file
  ...
DevinWalker added a commit to DevinWalker/gutenberg that referenced this pull request Oct 12, 2017
* master: (45 commits)
  Parser: Hide the core namespace in serialised data (WordPress#2950)
  fix: Undefined index warning (WordPress#2982)
  navigation via keydown
  PHPCS improvements (WordPress#2914)
  Update/html block description (WordPress#2917)
  Framework: Merge EditorSettingsProvider into EditorProvider
  Framework: Move the store initialization to a dedicated component
  Rotate header ellipsis to match block ellipsis
  add/459: Added support for ins, sub and sup
  Refresh nonce with heartbeat (WordPress#2790)
  Paste: add table support
  Bump version to 1.4.0. (WordPress#2954)
  Blocks: The custom classname should be persisted properly in the block's comment
  Editor: Fix the scroll position when reordering blocks
  Polish spacing in block ellipsis menu (WordPress#2955)
  Editor: HTML Editor per block (WordPress#2797)
  Show most frequently used blocks next to inserter (WordPress#2877)
  add/459: Added light grey background to selected inline boundaries
  Extend inline boundaries to other elements
  Move markdown fix to own plugin-compatibility file
  ...
DevinWalker added a commit to DevinWalker/gutenberg that referenced this pull request Oct 12, 2017
* master: (45 commits)
  Parser: Hide the core namespace in serialised data (WordPress#2950)
  fix: Undefined index warning (WordPress#2982)
  navigation via keydown
  PHPCS improvements (WordPress#2914)
  Update/html block description (WordPress#2917)
  Framework: Merge EditorSettingsProvider into EditorProvider
  Framework: Move the store initialization to a dedicated component
  Rotate header ellipsis to match block ellipsis
  add/459: Added support for ins, sub and sup
  Refresh nonce with heartbeat (WordPress#2790)
  Paste: add table support
  Bump version to 1.4.0. (WordPress#2954)
  Blocks: The custom classname should be persisted properly in the block's comment
  Editor: Fix the scroll position when reordering blocks
  Polish spacing in block ellipsis menu (WordPress#2955)
  Editor: HTML Editor per block (WordPress#2797)
  Show most frequently used blocks next to inserter (WordPress#2877)
  add/459: Added light grey background to selected inline boundaries
  Extend inline boundaries to other elements
  Move markdown fix to own plugin-compatibility file
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Build Tooling Issues or PRs related to build tooling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants