for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Box plugin for HiDev
*
* @link https://github.com/hiqdev/hidev-box
* @package hidev-box
* @license BSD-3-Clause
* @copyright Copyright (c) 2016-2017, HiQDev (http://hiqdev.com/)
*/
namespace hidev\box\console;
* PHAR building with Box.
class BoxController extends \hidev\base\Controller
{
protected $_before = ['install', 'box.json'];
public $verbose;
public function getConfiguration()
return $this->take('box.json');
}
public function actionIndex()
$this->take('vcs')->setIgnore([
$this->getConfiguration()->get('output') => 'Binaries',
]);
/// TODO fix to use general vcsignore
$this->runRequest('.gitignore');
runRequest()
hidev\box\console\BoxController
__call
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
$this->/** @scrutinizer ignore-call */
runRequest('.gitignore');
return $this->runBuild();
public function actionBuild()
$this->runBuild();
public function runBuild()
$args = ['build'];
if ($this->verbose) {
$args[] = '--verbose';
return $this->passthru('box', $args);