Loading src/Helpers/Builds.php +23 −32 Original line number Diff line number Diff line Loading @@ -176,19 +176,11 @@ if (count($files) > 2) { foreach ($files as $file) { $filename = pathinfo($file, PATHINFO_FILENAME); if (preg_match("/IMG/i", $filename)) { continue; } if (preg_match("/latest/i", $filename)) { // Skip all files except for the ones that match the pattern // filename starting with e- and ending with .zip are considered as valid files if (!preg_match("/^e-[0-9\.]+-(.*)-$device\.zip$/i", $file)) { continue; } $extension = pathinfo($file, PATHINFO_EXTENSION); if ($extension == 'zip') { $build = null; // If APC is enabled Loading Loading @@ -216,7 +208,6 @@ } } } } $this->logger->debug('Total execution time of getBuilds in seconds'); } Loading Loading
src/Helpers/Builds.php +23 −32 Original line number Diff line number Diff line Loading @@ -176,19 +176,11 @@ if (count($files) > 2) { foreach ($files as $file) { $filename = pathinfo($file, PATHINFO_FILENAME); if (preg_match("/IMG/i", $filename)) { continue; } if (preg_match("/latest/i", $filename)) { // Skip all files except for the ones that match the pattern // filename starting with e- and ending with .zip are considered as valid files if (!preg_match("/^e-[0-9\.]+-(.*)-$device\.zip$/i", $file)) { continue; } $extension = pathinfo($file, PATHINFO_EXTENSION); if ($extension == 'zip') { $build = null; // If APC is enabled Loading Loading @@ -216,7 +208,6 @@ } } } } $this->logger->debug('Total execution time of getBuilds in seconds'); } Loading