Completed
Push — master ( 400cdc...8ae08c )
by Daniel
03:17
created
source/ComposerPackagesListing.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
             'Machine Type'                  => php_uname('m'),
71 71
             'Operating System Architecture' => $knownValues[php_uname('m')],
72 72
             'Operating System Name'         => php_uname('s'),
73
-            'Operating System Version'      => php_uname('r') . ' ' . php_uname('v'),
73
+            'Operating System Version'      => php_uname('r').' '.php_uname('v'),
74 74
         ];
75 75
     }
76 76
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
             'Url'             => 'https://github.com/php/php-src',
97 97
             'Vendor'          => 'The PHP Group',
98 98
             'Version'         => PHP_VERSION,
99
-            'Version no.'     => PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION . '.' . PHP_RELEASE_VERSION,
99
+            'Version no.'     => PHP_MAJOR_VERSION.'.'.PHP_MINOR_VERSION.'.'.PHP_RELEASE_VERSION,
100 100
         ];
101 101
         if ($skipAging) {
102 102
             unset($aReturn['Aging']);
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
     protected function getFileModifiedTimestampOfFile($fileName, $format = 'Y-m-d H:i:s', $resultInUtc = false)
116 116
     {
117 117
         if (!file_exists($fileName)) {
118
-            return ['error' => $fileName . ' was not found'];
118
+            return ['error' => $fileName.' was not found'];
119 119
         }
120 120
         $info = new \SplFileInfo($fileName);
121 121
         if ($format === 'PHPtime') {
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
     protected function getPackageDetailsFromGivenComposerLockFileEnhanced($fileIn, $inParametersArray = [])
160 160
     {
161 161
         if (!file_exists($fileIn)) {
162
-            return ['error' => $fileIn . ' was not found'];
162
+            return ['error' => $fileIn.' was not found'];
163 163
         }
164 164
         $alnfo    = [];
165 165
         $packages = $this->getPkgFileInListOfPackageArrayOut($fileIn);
Please login to merge, or discard this patch.
tests/php-unit/ComposerPackagesListingTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -33,16 +33,16 @@
 block discarded – undo
33 33
 
34 34
     protected function setUp(): void
35 35
     {
36
-        require_once str_replace('tests' . DIRECTORY_SEPARATOR . 'php-unit', 'source', __DIR__)
37
-                . DIRECTORY_SEPARATOR . 'Basics.php';
38
-        require_once str_replace('tests' . DIRECTORY_SEPARATOR . 'php-unit', 'source', __DIR__)
39
-                . DIRECTORY_SEPARATOR . 'ComposerPackagesListing.php';
36
+        require_once str_replace('tests'.DIRECTORY_SEPARATOR.'php-unit', 'source', __DIR__)
37
+                . DIRECTORY_SEPARATOR.'Basics.php';
38
+        require_once str_replace('tests'.DIRECTORY_SEPARATOR.'php-unit', 'source', __DIR__)
39
+                . DIRECTORY_SEPARATOR.'ComposerPackagesListing.php';
40 40
     }
41 41
 
42 42
     public function testGetPackageDetailsFromGivenComposerLockFile()
43 43
     {
44 44
         $mock        = $this->getMockForTrait(ComposerPackagesListing::class);
45
-        $fileToCheck = str_replace('tests' . DIRECTORY_SEPARATOR . 'php-unit', '', realpath(__DIR__)) . 'composer.lock';
45
+        $fileToCheck = str_replace('tests'.DIRECTORY_SEPARATOR.'php-unit', '', realpath(__DIR__)).'composer.lock';
46 46
         $actual      = $mock->getPackageDetailsFromGivenComposerLockFile($fileToCheck, true);
47 47
         $this->assertArrayHasKey('Aging', $actual['phpunit/phpunit']);
48 48
     }
Please login to merge, or discard this patch.