Skip to content

Commit

Permalink
Remove commented out lines.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdmccabe committed May 23, 2022
1 parent a74662c commit 47bab46
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
7 changes: 0 additions & 7 deletions src/Composer/Composer.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,6 @@ private function __clone() {
* @return Composer
*/
public static function getInstance($configFile = NULL, $configFilePath = NULL) {
/*if(!isset($configFile)|| !isset($configFilePath)){
$config = Factory::createConfig(new NullIO(), getcwd());
if(!isset($configFile))
$configFile = $config->get('home').'/composer.json';
if(!isset($configFilePath))
$configFilePath = $config->get('home');
}*/
putenv('COMPOSER=' . $configFile);
self::$configFile = $configFile;
self::$configFilePath = $configFilePath;
Expand Down
4 changes: 0 additions & 4 deletions src/Composer/Console/Formatter/BootstrapOutputFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ public function __construct(array $styles = []) {
public function format($message) {
$message = preg_replace('/<info>(.*),\s*(.*)<\/info>/i', '<info>$2 ($1)</info>', $message);
$message = str_replace("\n", '', $message);
// $message = preg_replace('/<warning>(.*)<\/warning>/i', '<warning>$1</warning>'."\n\n", $message);
// if(strlen($message) > 0 && strpos($message, "\n") === false){
// $message .= $message."\n";
// }
$formatted = parent::format($message);

$clearEscapeCodes = '(?:39|49|0|22|24|25|27|28|43)';
Expand Down

0 comments on commit 47bab46

Please sign in to comment.