@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | /** |
83 | 83 | * Returns Modified date and time of a given file |
84 | 84 | * |
85 | - * @param type $fileName |
|
85 | + * @param string $fileName |
|
86 | 86 | * @return string |
87 | 87 | */ |
88 | 88 | protected function getFileModifiedTimestampOfFile($fileName, $resultInUtcTimeZone = false) |
@@ -131,6 +131,9 @@ discard block |
||
131 | 131 | return $interval->format('%a days ago'); |
132 | 132 | } |
133 | 133 | |
134 | + /** |
|
135 | + * @param string $defaultNA |
|
136 | + */ |
|
134 | 137 | private function getPkgBasicInfo($value, $defaultNA) |
135 | 138 | { |
136 | 139 | return [ |
@@ -142,6 +145,9 @@ discard block |
||
142 | 145 | ]; |
143 | 146 | } |
144 | 147 | |
148 | + /** |
|
149 | + * @param string $fileToRead |
|
150 | + */ |
|
145 | 151 | private function getPkgFileInListOfPackageArrayOut($fileToRead) |
146 | 152 | { |
147 | 153 | $handle = fopen($fileToRead, 'r'); |
@@ -159,6 +165,9 @@ discard block |
||
159 | 165 | return $lcns; |
160 | 166 | } |
161 | 167 | |
168 | + /** |
|
169 | + * @param string $defaultNA |
|
170 | + */ |
|
162 | 171 | private function getPkgOptAtributeAll($value, $defaultNA) |
163 | 172 | { |
164 | 173 | $attr = ['description', 'homepage', 'type', 'url', 'version']; |
@@ -172,6 +181,9 @@ discard block |
||
172 | 181 | return $aReturn; |
173 | 182 | } |
174 | 183 | |
184 | + /** |
|
185 | + * @param string $defaultNA |
|
186 | + */ |
|
175 | 187 | private function getPkgTiming($value, $defaultNA) |
176 | 188 | { |
177 | 189 | if (isset($value['time'])) { |
@@ -196,6 +208,9 @@ discard block |
||
196 | 208 | return $vrs; |
197 | 209 | } |
198 | 210 | |
211 | + /** |
|
212 | + * @param string $defaultNA |
|
213 | + */ |
|
199 | 214 | private function getPkgVersion($value, $defaultNA) |
200 | 215 | { |
201 | 216 | if (isset($value['version'])) { |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | 'Machine Type' => php_uname('m'), |
49 | 49 | 'Operating System Architecture' => $knownValues[php_uname('m')], |
50 | 50 | 'Operating System Name' => php_uname('s'), |
51 | - 'Operating System Version' => php_uname('r') . ' ' . php_uname('v'), |
|
51 | + 'Operating System Version' => php_uname('r').' '.php_uname('v'), |
|
52 | 52 | ]; |
53 | 53 | } |
54 | 54 | |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | 'Url' => 'https://github.com/php/php-src', |
76 | 76 | 'Vendor' => 'The PHP Group', |
77 | 77 | 'Version' => PHP_VERSION, |
78 | - 'Version no.' => PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION . '.' . PHP_RELEASE_VERSION, |
|
78 | + 'Version no.' => PHP_MAJOR_VERSION.'.'.PHP_MINOR_VERSION.'.'.PHP_RELEASE_VERSION, |
|
79 | 79 | ]; |
80 | 80 | } |
81 | 81 | |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | protected function getFileModifiedTimestampOfFile($fileName, $resultInUtcTimeZone = false) |
89 | 89 | { |
90 | 90 | if (!file_exists($fileName)) { |
91 | - return ['error' => $fileToRead . ' was not found']; |
|
91 | + return ['error' => $fileToRead.' was not found']; |
|
92 | 92 | } |
93 | 93 | $info = new \SplFileInfo($fileName); |
94 | 94 | $sResult = date('Y-m-d H:i:s', $info->getMTime()); |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | protected function getPackageDetailsFromGivenComposerLockFile($fileToRead) |
108 | 108 | { |
109 | 109 | if (!file_exists($fileToRead)) { |
110 | - return ['error' => $fileToRead . ' was not found']; |
|
110 | + return ['error' => $fileToRead.' was not found']; |
|
111 | 111 | } |
112 | 112 | $dNA = '---'; |
113 | 113 | $alnfo = []; |
@@ -34,7 +34,7 @@ |
||
34 | 34 | |
35 | 35 | public function testGetPackageDetailsFromGivenComposerLockFile() |
36 | 36 | { |
37 | - $fileToCheck = str_replace('tests' . DIRECTORY_SEPARATOR . 'php-unit', '', realpath(__DIR__)) . 'composer.lock'; |
|
37 | + $fileToCheck = str_replace('tests'.DIRECTORY_SEPARATOR.'php-unit', '', realpath(__DIR__)).'composer.lock'; |
|
38 | 38 | $actual = $this->getPackageDetailsFromGivenComposerLockFile($fileToCheck); |
39 | 39 | $this->assertArrayHasKey('Aging', $actual['phpunit/phpunit']); |
40 | 40 | } |