for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* Composer plugin for bower/npm assets
*
* @link https://github.com/hiqdev/composer-asset-plugin
* @package composer-asset-plugin
* @license BSD-3-Clause
* @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/)
*/
namespace hiqdev\composerassetplugin;
/**
* Bower package manager class.
* @author Andrii Vasyliev <[email protected]>
class Bower extends PackageManager
{
* {@inheritdoc}
protected $name = 'bower';
public $file = 'bower.json';
public $phpPackage = 'beelab/bowerphp';
public $phpBin = 'bowerphp';
* @var array Minimal bower config
protected $config = [
'name' => 'composer-asset-plugin',
'description' => "This file is auto-generated with 'hiqdev/composer-asset-plugin'.",
];
public function fixConstraint($constraint)
if (Constraint::isDisjunctive($constraint)) {
$constraint = Constraint::findMax(explode($constraint, '|'));
}
return $constraint;