-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from jjanvier/dispatch-events
Dispatch events (to get a fancy decoupled output)
- Loading branch information
Showing
20 changed files
with
980 additions
and
99 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
File renamed without changes.
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
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
use Symfony\Component\Finder\Finder; | ||
|
||
/** | ||
* Default finder implementation | ||
* Default finder implementation. | ||
* | ||
* @author Julien Janvier <[email protected]> | ||
* @license http://opensource.org/licenses/MIT MIT | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
namespace Akeneo\CouplingDetector\Console; | ||
|
||
use Symfony\Component\Console\Formatter\OutputFormatter as BaseOutputFormatter; | ||
use Symfony\Component\Console\Formatter\OutputFormatterStyle; | ||
|
||
/** | ||
* Output formatter for coupling detector. | ||
* Just adds some styles to the Symfony output formatter. | ||
* | ||
* @author Julien Janvier <[email protected]> | ||
* @license http://opensource.org/licenses/MIT MIT | ||
*/ | ||
class OutputFormatter extends BaseOutputFormatter | ||
{ | ||
/** | ||
* OutputFormatter constructor. | ||
* | ||
* @param bool $decorated | ||
* @param array $styles | ||
*/ | ||
public function __construct($decorated = false, array $styles = array()) | ||
{ | ||
parent::__construct($decorated, $styles); | ||
|
||
$this->setStyle('passed', new OutputFormatterStyle('green', null, array())); | ||
$this->setStyle('passed-bg', new OutputFormatterStyle('black', 'green', array('bold'))); | ||
|
||
$this->setStyle('broken', new OutputFormatterStyle('red', null, array())); | ||
$this->setStyle('broken-bg', new OutputFormatterStyle('white', 'red', array('bold'))); | ||
|
||
$this->setStyle('blink', new OutputFormatterStyle(null, null, array('blink'))); | ||
} | ||
} |
Oops, something went wrong.