Skip to content

Commit

Permalink
Merge pull request #36 from mfleeson/Extensions-and-General-Fixes
Browse files Browse the repository at this point in the history
Extensions and general fixes
  • Loading branch information
mfleeson authored Dec 4, 2024
2 parents a7d4c23 + 2f91151 commit c3139ae
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
4 changes: 3 additions & 1 deletion fix-formatting.bat
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
vendor\bin\php-cs-fixer fix -vvv --diff
vendor\bin\php-cs-fixer fix -vvv --diff
vendor\bin\phpcs --extensions=php -p --standard=ruleset.xml src/
vendor\bin\phpcbf --extensions=php -p --standard=ruleset.xml src/
10 changes: 5 additions & 5 deletions src/administrator/components/com_jed/src/Field/ApprovedField.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

namespace Joomla\Component\Jed\Administrator\Field;
namespace Jed\Component\Jed\Administrator\Field;

defined('_JEXEC') or die;
// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\Form\Field\ListField;
use Joomla\CMS\HTML\HTMLHelper;

use RuntimeException;

use function defined;

/**
* List of approved states.
*
Expand All @@ -43,7 +43,7 @@ class ApprovedField extends ListField
* @since 4.0.0
* @throws RuntimeException
*/
public function getOptions(): array
protected function getOptions(): array
{
$params = ComponentHelper::getParams('com_jed');
$codes = $params->get('awaiting_response_codes');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ public static function prettyDate(mixed $datestr): string
}
}

public static function OutputFieldsets(array $fieldsets, Form $form): bool
public static function outputFieldsets(array $fieldsets, Form $form): bool
{
$fscount = 0;
foreach ($fieldsets as $fscat => $fs) {
Expand Down
4 changes: 2 additions & 2 deletions src/administrator/components/com_jed/tmpl/extension/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
$fieldsets['integration']['fields'] = [['download_integration_type', 'download_integration_url']];
$fieldsets['integration']['hidden'] = [];

JedHelper::OutputFieldsets($fieldsets, $varied_form);
JedHelper::outputFieldsets($fieldsets, $varied_form);
$fieldsets = [];

echo HTMLHelper::_('uitab.endTab');
Expand Down Expand Up @@ -149,7 +149,7 @@

</div>
<div class="row ticket-header-row">

<div class="col-md-4 ticket-header">

<h1>Version - <?php echo $review->version; ?></h1>
Expand Down

0 comments on commit c3139ae

Please sign in to comment.