@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | /** |
103 | 103 | * Returns Modified date and time of a given file |
104 | 104 | * |
105 | - * @param type $fileName |
|
105 | + * @param string $fileName |
|
106 | 106 | * @return string |
107 | 107 | */ |
108 | 108 | protected function getFileModifiedTimestampOfFile($fileName, $resultInUtcTimeZone = false) |
@@ -151,6 +151,9 @@ discard block |
||
151 | 151 | return $interval->format('%a days ago'); |
152 | 152 | } |
153 | 153 | |
154 | + /** |
|
155 | + * @param string $defaultNA |
|
156 | + */ |
|
154 | 157 | private function getPkgBasicInfo($value, $defaultNA) |
155 | 158 | { |
156 | 159 | return [ |
@@ -162,6 +165,11 @@ discard block |
||
162 | 165 | ]; |
163 | 166 | } |
164 | 167 | |
168 | + /** |
|
169 | + * @param string $fileToRead |
|
170 | + * |
|
171 | + * @return boolean |
|
172 | + */ |
|
165 | 173 | private function getPkgFileInListOfPackageArrayOut($fileToRead) |
166 | 174 | { |
167 | 175 | $handle = fopen($fileToRead, 'r'); |
@@ -179,6 +187,9 @@ discard block |
||
179 | 187 | return $lcns; |
180 | 188 | } |
181 | 189 | |
190 | + /** |
|
191 | + * @param string $defaultNA |
|
192 | + */ |
|
182 | 193 | private function getPkgOptAtributeAll($value, $defaultNA) |
183 | 194 | { |
184 | 195 | $attr = ['description', 'homepage', 'type', 'url', 'version']; |
@@ -192,6 +203,9 @@ discard block |
||
192 | 203 | return $aReturn; |
193 | 204 | } |
194 | 205 | |
206 | + /** |
|
207 | + * @param string $defaultNA |
|
208 | + */ |
|
195 | 209 | private function getPkgTiming($value, $defaultNA) |
196 | 210 | { |
197 | 211 | if (isset($value['time'])) { |
@@ -216,6 +230,9 @@ discard block |
||
216 | 230 | return $vrs; |
217 | 231 | } |
218 | 232 | |
233 | + /** |
|
234 | + * @param string $defaultNA |
|
235 | + */ |
|
219 | 236 | private function getPkgVersion($value, $defaultNA) |
220 | 237 | { |
221 | 238 | if (isset($value['version'])) { |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | 'Machine Type' => php_uname('m'), |
69 | 69 | 'Operating System Architecture' => $knownValues[php_uname('m')], |
70 | 70 | 'Operating System Name' => php_uname('s'), |
71 | - 'Operating System Version' => php_uname('r') . ' ' . php_uname('v'), |
|
71 | + 'Operating System Version' => php_uname('r').' '.php_uname('v'), |
|
72 | 72 | ]; |
73 | 73 | } |
74 | 74 | |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | 'Url' => 'https://github.com/php/php-src', |
96 | 96 | 'Vendor' => 'The PHP Group', |
97 | 97 | 'Version' => PHP_VERSION, |
98 | - 'Version no.' => PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION . '.' . PHP_RELEASE_VERSION, |
|
98 | + 'Version no.' => PHP_MAJOR_VERSION.'.'.PHP_MINOR_VERSION.'.'.PHP_RELEASE_VERSION, |
|
99 | 99 | ]; |
100 | 100 | } |
101 | 101 | |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | protected function getFileModifiedTimestampOfFile($fileName, $resultInUtcTimeZone = false) |
109 | 109 | { |
110 | 110 | if (!file_exists($fileName)) { |
111 | - return ['error' => $fileToRead . ' was not found']; |
|
111 | + return ['error' => $fileToRead.' was not found']; |
|
112 | 112 | } |
113 | 113 | $info = new \SplFileInfo($fileName); |
114 | 114 | $sResult = date('Y-m-d H:i:s', $info->getMTime()); |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | protected function getPackageDetailsFromGivenComposerLockFile($fileToRead, $devInstead = false) |
128 | 128 | { |
129 | 129 | if (!file_exists($fileToRead)) { |
130 | - return ['error' => $fileToRead . ' was not found']; |
|
130 | + return ['error' => $fileToRead.' was not found']; |
|
131 | 131 | } |
132 | 132 | $dNA = '---'; |
133 | 133 | $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, true); |
39 | 39 | $this->assertArrayHasKey('Aging', $actual['phpunit/phpunit']); |
40 | 40 | } |