Completed
Push — master ( ebc440...1d4afc )
by Anton
04:05
created

BraintreeAsset.php (5 issues)

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
 * @copyright Anton Tuyakhov <[email protected]>
4
 */
5
namespace tuyakhov\braintree;
6
7
use yii\web\AssetBundle;
8
9
class BraintreeAsset extends AssetBundle
10
{
11
    public $sourcePath = '@npm/braintree-web/dist';
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
12
    public $js = [
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
Equals sign not aligned with surrounding assignments; expected 9 spaces but found 1 space

This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.

To visualize

$a = "a";
$ab = "ab";
$abc = "abc";

will produce issues in the first and second line, while this second example

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
13
        'braintree.js',
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
14
    ];
0 ignored issues
show
Tabs must be used to indent lines; spaces are not allowed
Loading history...
15
16
}