php-school / cli-menu

🖥 Build beautiful PHP CLI menus. Simple yet Powerful. Expressive DSL.
http://www.phpschool.io
MIT License
1.94k stars 106 forks source link

Selectable item renderer #231

Closed AydinHassan closed 4 years ago

AydinHassan commented 4 years ago

Abstract away some of the duplicated renderer code for selectable items

codecov-io commented 4 years ago

Codecov Report

Merging #231 into master will increase coverage by 0.54%. The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #231      +/-   ##
============================================
+ Coverage     92.07%   92.61%   +0.54%     
+ Complexity      615      612       -3     
============================================
  Files            35       36       +1     
  Lines          1854     1829      -25     
============================================
- Hits           1707     1694      -13     
+ Misses          147      135      -12
Impacted Files Coverage Δ Complexity Δ
src/MenuItem/RadioItem.php 100% <100%> (ø) 17 <0> (-4) :arrow_down:
src/MenuItem/SelectableItemRenderer.php 100% <100%> (ø) 9 <9> (?)
src/MenuItem/MenuMenuItem.php 91.17% <100%> (+7.84%) 15 <0> (-4) :arrow_down:
src/MenuItem/CheckboxItem.php 100% <100%> (ø) 16 <0> (-4) :arrow_down:
src/MenuStyle.php 98.9% <0%> (+2.19%) 77% <0%> (ø) :arrow_down:

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 d97347e...7ba829f. Read the comment docs.