Completed
Push — master ( f6cc4f...20183c )
by Andrii
03:46
created

src/helpers/ConfigPlugin.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
/**
3
 * Automation tool mixed with code generator for easier continuous development
4
 *
5
 * @link      https://github.com/hiqdev/hidev
6
 * @package   hidev
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2015-2018, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hidev\helpers;
12
13
/**
14
 * Composer config plugin helper.
15
 */
16
class ConfigPlugin
17
{
18
    public static function path($name, $vendor)
19
    {
20
        /// doesn't work when dependencies are not installed
21
        /// return \hiqdev\composer\config\Builder::path($name, $vendor);
0 ignored issues
show
Unused Code Comprehensibility introduced by
58% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
22
        return "$vendor/hiqdev/composer-config-plugin-output/$name.php";
23
    }
24
}
25