Skip to content

Commit

Permalink
phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedik committed Aug 16, 2023
1 parent 149e4e6 commit 45b3ba8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion administrator/components/com_admin/script.php
Original file line number Diff line number Diff line change
Expand Up @@ -8821,7 +8821,7 @@ protected function fixTemplateMode(): void

foreach (['atum', 'cassiopeia'] as $template) {
$clientId = $template === 'atum' ? 1 : 0;
$query = $db->getQuery(true)
$query = $db->getQuery(true)
->update($db->quoteName('#__template_styles'))
->set($db->quoteName('inheritable') . ' = 1')
->where($db->quoteName('template') . ' = ' . $db->quote($template))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ public function finaliseUpgrade()
// Reinitialise the installer's extensions table's properties.
$installer->extension->getFields(true);

try{
try {
ob_start();

if ($manifestClass->update($installer) === false) {
Expand Down Expand Up @@ -836,7 +836,7 @@ public function finaliseUpgrade()
}

// And now we run the postflight.
try{
try {
ob_start();
$manifestClass->postflight('update', $installer);

Expand Down Expand Up @@ -1792,9 +1792,9 @@ public function collectError(string $context, \Throwable $error)
'Update'
);

if (JDEBUG) {
$trace = $error->getFile() . ':' . $error->getLine() . PHP_EOL . $error->getTraceAsString();
Log::add(sprintf('An error trace: %s.', $trace), Log::DEBUG, 'Update');
}
if (JDEBUG) {
$trace = $error->getFile() . ':' . $error->getLine() . PHP_EOL . $error->getTraceAsString();
Log::add(sprintf('An error trace: %s.', $trace), Log::DEBUG, 'Update');
}
}
}

0 comments on commit 45b3ba8

Please sign in to comment.