Skip to content

Commit 419dfa7

Browse files
committed
Chore: Normalize line endings and fix code style via PHPCBF
1 parent cbbff6c commit 419dfa7

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

cli/joomla.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,14 @@
1010

1111
// We are a valid entry point.
1212
const _JEXEC = 1;
13-
1413
// Define the application's minimum supported PHP version as a constant so it can be referenced within the application.
1514
const JOOMLA_MINIMUM_PHP = '8.1.0';
16-
1715
if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '<')) {
1816
echo 'Sorry, your PHP version is not supported.' . PHP_EOL;
1917
echo 'Your command line php needs to be version ' . JOOMLA_MINIMUM_PHP . ' or newer to run the Joomla! CLI Tools' . PHP_EOL;
2018
echo 'The version of PHP currently running this code, at the command line, is PHP version ' . PHP_VERSION . '.' . PHP_EOL;
2119
echo 'Please note, the version of PHP running your commands here, may be different to the version that is used by ';
2220
echo 'your web server to run the Joomla! Web Application' . PHP_EOL;
23-
2421
exit;
2522
}
2623

@@ -39,7 +36,6 @@
3936
echo 'It looks like you are trying to run Joomla! from our git repository.' . PHP_EOL;
4037
echo 'To do so requires you complete a couple of extra steps first.' . PHP_EOL;
4138
echo 'Please see https://docs.joomla.org/Special:MyLanguage/J5.x:Setting_Up_Your_Local_Environment for further details.' . PHP_EOL;
42-
4339
exit;
4440
}
4541

@@ -49,16 +45,13 @@
4945
|| (filesize(JPATH_CONFIGURATION . '/configuration.php') < 10)
5046
) {
5147
echo 'Install Joomla to run cli commands' . PHP_EOL;
52-
5348
exit;
5449
}
5550

5651
// Get the framework.
5752
require_once JPATH_BASE . '/includes/framework.php';
58-
5953
// Boot the DI container
6054
$container = \Joomla\CMS\Factory::getContainer();
61-
6255
/*
6356
* Alias the session service keys to the CLI session service as that is the primary session backend for this application
6457
*
@@ -71,7 +64,6 @@
7164
->alias(\Joomla\CMS\Session\Session::class, 'session.cli')
7265
->alias(\Joomla\Session\Session::class, 'session.cli')
7366
->alias(\Joomla\Session\SessionInterface::class, 'session.cli');
74-
7567
$app = \Joomla\CMS\Factory::getContainer()->get(\Joomla\Console\Application::class);
7668
\Joomla\CMS\Factory::$application = $app;
7769
$app->execute();

plugins/system/opengraph/src/Extension/opengraph.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,7 @@ private function getFieldValue(object $article, string $fieldName, array $articl
283283
$customFields = FieldsHelper::getFields('com_content.article', $article, true);
284284

285285
foreach ($customFields as $field) {
286-
287286
if ($field->name == $customFieldName) {
288-
289287
return $field->value ?? '';
290288
}
291289
}
@@ -401,9 +399,7 @@ private function getOgTagsFromParams(Registry $params, array &$ogTags): void
401399

402400

403401
foreach (array_keys($ogTags) as $ogTagName) {
404-
405402
if ($params->exists($ogTagName)) {
406-
407403
$value = $params->get($ogTagName);
408404

409405

0 commit comments

Comments
 (0)