Skip to content

Commit

Permalink
Update CheckRequirements Command
Browse files Browse the repository at this point in the history
  • Loading branch information
M0rgan01 committed Dec 5, 2024
1 parent cd5a699 commit 47320ce
Show file tree
Hide file tree
Showing 7 changed files with 1,577 additions and 9 deletions.
2 changes: 1 addition & 1 deletion classes/Commands/CheckRequirementsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ private function processRequirementWarnings(): void
default:
if (isset($wording['list'])) {
foreach ($wording['list'] as $item) {
$this->output->writeln(' ' . $item);
$this->output->writeln("\t" . $item);
}
}
}
Expand Down
8 changes: 8 additions & 0 deletions tests/fixtures/checksum-compare/8.1.0.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,21 @@
<dir name="app">
<md5file name="AppKernel.php">37d3976fc4877231fa652567e4e02cd4</md5file>
</dir>
<dir name="install">
<md5file name="setup.php">b0175575517b2a31c3ee8cd55c5b50</md5file>
</dir>
<dir name="themes">
<dir name="classic">
<dir name="config">
<md5file name="theme.yml">b0175575517b2a31ccdc9d0784ec5b50</md5file>
</dir>
</dir>
</dir>
<dir name="translations">
<dir name="default">
<md5file name="AdminActions.xlf">ab259a1e9a4517fe5085897fe659eec9</md5file>
</dir>
</dir>
<md5file name="LICENSES">784dcbb3afa380d571da3664821f45bd</md5file>
</ps_root_dir>
</checksum_list>
1 change: 1 addition & 0 deletions tests/fixtures/checksum-compare/8.1.0/adminTest/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# to each configured DirectoryIndex file (e.g. index.php, index.html, index.pl).
DirectoryIndex index.php

// TOTO

# By default, Apache does not evaluate symbolic links if you did not enable this
# feature in your server configuration. Uncomment the following line if you
Expand Down
11 changes: 5 additions & 6 deletions tests/fixtures/checksum-compare/8.1.0/app/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class AppKernel extends Kernel
*/
public function registerBundles()
{
$bundles = [
$bundles = array(
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\SecurityBundle(),
new Symfony\Bundle\TwigBundle\TwigBundle(),
Expand All @@ -68,9 +68,9 @@ public function registerBundles()
new TranslationToolsBundle(),
new League\Tactician\Bundle\TacticianBundle(),
new FOS\JsRoutingBundle\FOSJsRoutingBundle(),
];
);

if (in_array($this->getEnvironment(), ['dev', 'test'], true)) {
if (in_array($this->getEnvironment(), array('dev', 'test'), true)) {
$bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle();
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
}
Expand Down Expand Up @@ -101,7 +101,7 @@ public function boot()
* Perform a lock on a file before cache clear is performed, this lock will be unlocked once the cache has been cleared.
* Until then any other process will have to wait until the file is unlocked.
*
* @return bool returns boolean indicating if the lock file was successfully locked
* @return bool Returns boolean indicating if the lock file was successfully locked.
*/
public function locksCacheClear(): bool
{
Expand All @@ -117,7 +117,6 @@ public function locksCacheClear(): bool
if (false === $clearCacheLocked) {
// Clear cache is already locked by another process, so we simply return
fclose($lockStream);

return false;
}

Expand Down Expand Up @@ -171,7 +170,7 @@ protected function getKernelParameters()

return array_merge(
$kernelParameters,
['kernel.active_modules' => $this->getActiveModules()]
array('kernel.active_modules' => $this->getActiveModules())
);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
TOTO

name: classic
display_name: Classic
version: 2.1.1
Expand All @@ -6,7 +8,6 @@ author:
email: "[email protected]"
url: "https://www.prestashop-project.org"


meta:
compatibility:
from: 8.1.0
Expand Down
Loading

0 comments on commit 47320ce

Please sign in to comment.