-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport: Update "health score" (formerly "magic number") logic to ac…
…count for config files (#129)
- Loading branch information
1 parent
47d002f
commit b4ca237
Showing
5 changed files
with
378 additions
and
51 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ branches: | |
only: | ||
- master | ||
- develop | ||
- support/2 | ||
- wip | ||
|
||
env: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
|
||
namespace Acquia\Orca\Console\Helper; | ||
|
||
use Symfony\Component\Console\Helper\Table; | ||
use Symfony\Component\Console\Helper\TableStyle; | ||
use Symfony\Component\Console\Output\OutputInterface; | ||
|
||
/** | ||
* Provides a table for status displays. | ||
*/ | ||
class BorderlessTable extends Table { | ||
|
||
/** | ||
* Constructs an instance. | ||
* | ||
* @param \Symfony\Component\Console\Output\OutputInterface $output | ||
* The output decorator. | ||
*/ | ||
public function __construct(OutputInterface $output) { | ||
parent::__construct($output); | ||
$this->setStyle($this->tableStyle()); | ||
} | ||
|
||
/** | ||
* Provides the table style. | ||
* | ||
* @return \Symfony\Component\Console\Helper\TableStyle | ||
* A TableStyle object. | ||
*/ | ||
private function tableStyle(): TableStyle { | ||
return (new TableStyle()) | ||
->setHorizontalBorderChars('', '') | ||
->setVerticalBorderChars('', '') | ||
->setDefaultCrossingChar(''); | ||
} | ||
|
||
} |
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
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
Oops, something went wrong.