@@ -118,6 +118,7 @@ protected function executeCommand(InputInterface $input, OutputInterface $output
118118 */
119119 private function getNodeVersion (): string
120120 {
121+ // phpcs:ignore Magento2.Security.InsecureFunction.Found -- exec required to check external tool version
121122 exec ('node -v 2>/dev/null ' , $ output , $ returnCode );
122123 return $ returnCode === 0 && !empty ($ output ) ? trim ($ output [0 ], 'v ' ) : 'Not installed ' ;
123124 }
@@ -201,6 +202,7 @@ private function getMysqlVersionViaMagento(): ?string
201202 */
202203 private function getMysqlVersionViaClient (): ?string
203204 {
205+ // phpcs:ignore Magento2.Security.InsecureFunction.Found -- exec required to check external tool version
204206 exec ('mysql --version 2>/dev/null ' , $ output , $ returnCode );
205207 if ($ returnCode === 0 && !empty ($ output )) {
206208 $ versionString = $ output [0 ];
@@ -299,6 +301,7 @@ private function getShortOsInfo(): string
299301 */
300302 private function getComposerVersion (): string
301303 {
304+ // phpcs:ignore Magento2.Security.InsecureFunction.Found -- exec required to check external tool version
302305 exec ('composer --version 2>/dev/null ' , $ output , $ returnCode );
303306 if ($ returnCode !== 0 || empty ($ output )) {
304307 return 'Not installed ' ;
@@ -315,6 +318,7 @@ private function getComposerVersion(): string
315318 */
316319 private function getNpmVersion (): string
317320 {
321+ // phpcs:ignore Magento2.Security.InsecureFunction.Found -- exec required to check external tool version
318322 exec ('npm --version 2>/dev/null ' , $ output , $ returnCode );
319323 return $ returnCode === 0 && !empty ($ output ) ? trim ($ output [0 ]) : 'Not installed ' ;
320324 }
@@ -326,6 +330,7 @@ private function getNpmVersion(): string
326330 */
327331 private function getGitVersion (): string
328332 {
333+ // phpcs:ignore Magento2.Security.InsecureFunction.Found -- exec required to check external tool version
329334 exec ('git --version 2>/dev/null ' , $ output , $ returnCode );
330335 if ($ returnCode !== 0 || empty ($ output )) {
331336 return 'Not installed ' ;
@@ -554,7 +559,7 @@ private function formatSearchEngineVersion(array $info): string
554559
555560 return 'Search Engine Available ' ;
556561 }
557-
562+
558563 /**
559564 * Test Elasticsearch connection and return version info
560565 *
0 commit comments