Completed
Pull Request — master (#448)
by
unknown
08:31
created
phpmetrics/src/Hal/Component/Issue/Issuer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@
 block discarded – undo
141 141
     }
142 142
 
143 143
     /**
144
-     * @param int|string $status
144
+     * @param integer $status
145 145
      *
146 146
      * @return void
147 147
      */
Please login to merge, or discard this patch.
phpmetrics/src/Hal/Metric/System/Packages/Composer/Composer.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
 
97 97
     /**
98 98
      * Returns the installed packages from the composer.lock file.
99
-     * @param mixed[] $rootPackageRequirements List of requirements to match installed packages only with requirements.
99
+     * @param integer[] $rootPackageRequirements List of requirements to match installed packages only with requirements.
100 100
      * @return mixed[]
101 101
      */
102 102
     protected function getComposerLockInstalled($rootPackageRequirements)
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 namespace Hal\Metric\System\Packages\Composer;
3 3
 
4 4
 use Hal\Application\Config\Config;
5
-use Hal\Application\Config\ConfigException;
6 5
 use Hal\Component\File\Finder;
7 6
 use Hal\Metric\Metrics;
8 7
 use Hal\Metric\ProjectMetric;
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         }
52 52
 
53 53
         // exclude extensions
54
-        $packages = array_filter($packages, function ($package) {
54
+        $packages = array_filter($packages, function($package) {
55 55
             return !preg_match('!(^php$|^ext\-)!', $package->name);
56 56
         });
57 57
 
@@ -82,13 +82,13 @@  discard block
 block discarded – undo
82 82
             if ($fileContent === false) {
83 83
                 throw new ShouldNotHappenException('Get composer content return false');
84 84
             }
85
-            $composerJson = (object)\json_decode($fileContent);
85
+            $composerJson = (object) \json_decode($fileContent);
86 86
 
87 87
             if (!isset($composerJson->require)) {
88 88
                 continue;
89 89
             }
90 90
 
91
-            $rawRequirements[] = (array)$composerJson->require;
91
+            $rawRequirements[] = (array) $composerJson->require;
92 92
         }
93 93
 
94 94
         return \call_user_func_array('array_merge', $rawRequirements);
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
             if ($fileContent === false) {
117 117
                 throw new ShouldNotHappenException('Get composer lock content return false');
118 118
             }
119
-            $composerLockJson = (object)\json_decode($fileContent);
119
+            $composerLockJson = (object) \json_decode($fileContent);
120 120
 
121 121
             if (!isset($composerLockJson->packages)) {
122 122
                 continue;
Please login to merge, or discard this patch.
phpmetrics/tests/Component/Tree/GraphDeduplicatedTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Test;
4 4
 
5
-use Hal\Component\Tree\Graph;
6 5
 use Hal\Component\Tree\GraphDeduplicated;
7 6
 use Hal\Component\Tree\Node;
8 7
 
Please login to merge, or discard this patch.
phpmetrics/tests/Component/Tree/Operator/SizeOfTreeTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Test;
4 4
 
5 5
 use Hal\Component\Tree\Graph;
6
-use Hal\Component\Tree\GraphFactory;
7 6
 use Hal\Component\Tree\Node;
8 7
 use Hal\Component\Tree\Operator\SizeOfTree;
9 8
 
Please login to merge, or discard this patch.
src/Console/CliInput.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
             if (trim($item) === '') {
40 40
                 continue;
41 41
             }
42
-            $this->exts[] = '*.' . ltrim(trim($item), '*.');
42
+            $this->exts[] = '*.'.ltrim(trim($item), '*.');
43 43
         }
44 44
 
45 45
         if (empty($this->exts)) {
Please login to merge, or discard this patch.
src/Parser/PhpParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,11 +36,11 @@
 block discarded – undo
36 36
         try {
37 37
             $stmt = $this->parser->parse($file->getContents());
38 38
         } catch (Error $exc) {
39
-            throw new ParserException($file->getRelativePathname() . ': ' . $exc->getMessage());
39
+            throw new ParserException($file->getRelativePathname().': '.$exc->getMessage());
40 40
         }
41 41
 
42 42
         if ($stmt === null) {
43
-            throw new ParserException('Parse function return null when parsing ' . $file->getRelativePathname());
43
+            throw new ParserException('Parse function return null when parsing '.$file->getRelativePathname());
44 44
         }
45 45
 
46 46
         $this->traverser->traverse($stmt);
Please login to merge, or discard this patch.
src/DiFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      */
22 22
     public static function container(array $rules = []) : ContainerInterface
23 23
     {
24
-        $dirules = Json::decode(FileSystem::read(__DIR__ . '/dirules.json'), Json::FORCE_ARRAY);
24
+        $dirules = Json::decode(FileSystem::read(__DIR__.'/dirules.json'), Json::FORCE_ARRAY);
25 25
         $rlist = new DiRuleList();
26 26
         $rlist = $rlist->addRules($dirules);
27 27
         $rlist = $rlist->addRules($rules);
Please login to merge, or discard this patch.
phpmetrics/templates/html_report/package_relations.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1
-<?php require __DIR__ . '/_header.php'; ?>
1
+<?php require __DIR__.'/_header.php'; ?>
2 2
 
3 3
 <?php
4 4
 $relations = [];
5
-$getPackageName = function ($name) {
5
+$getPackageName = function($name) {
6 6
     return $name === '\\' ? 'global' : substr($name, 0, -1);
7 7
 };
8 8
 foreach ($packages as $package) {
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     </div>
42 42
 </div>
43 43
 
44
-<?php require __DIR__ . '/_footer.php'; ?>
44
+<?php require __DIR__.'/_footer.php'; ?>
45 45
 
46 46
 
47 47
 <script type="text/javascript">
Please login to merge, or discard this patch.
phpmetrics/templates/html_report/loc.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php require __DIR__ . '/_header.php'; ?>
1
+<?php require __DIR__.'/_header.php'; ?>
2 2
 
3 3
 
4 4
 <?php
@@ -19,10 +19,10 @@  discard block
 block discarded – undo
19 19
 
20 20
 // 2. percentile map
21 21
 $json = [];
22
-if(count($array) > 1) {
22
+if (count($array) > 1) {
23 23
     $range = range(0.5, 1, .05);
24 24
     foreach ($range as $percentile) {
25
-        $json[] = (object)[
25
+        $json[] = (object) [
26 26
             'lloc' => percentile($array, $percentile),
27 27
             'percentile' => round($percentile * 100),
28 28
         ];
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
                         <td><span class="path"><?php echo $class['name']; ?></span></td>
64 64
                         <?php foreach (['lloc', 'cloc', 'volume', 'intelligentContent', 'commentWeight'] as $attribute) {?>
65 65
                             <td>
66
-                                <span class="badge" <?php echo gradientStyleFor($classes, $attribute, $class[$attribute]);?>);">
66
+                                <span class="badge" <?php echo gradientStyleFor($classes, $attribute, $class[$attribute]); ?>);">
67 67
                                 <?php echo isset($class[$attribute]) ? $class[$attribute] : ''; ?>
68 68
                                 </span>
69 69
                             </td>
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 </div>
77 77
 
78 78
 
79
-<?php require __DIR__ . '/_footer.php'; ?>
79
+<?php require __DIR__.'/_footer.php'; ?>
80 80
 
81 81
 
82 82
 <script>
Please login to merge, or discard this patch.