Skip to content

Commit

Permalink
Standards fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
billtomczak committed Jun 29, 2023
1 parent e26ca5b commit 258a4f5
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/admin/library/Free/Joomla/Controller/Site.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected function processEmailRequirement(object $item): bool
return false;
}

/** @var \OSDownloadsModelEmail $modelEmail */
/** @var \OsdownloadsModelEmail $modelEmail */
$modelEmail = $component->getModel('Email');
if (!$modelEmail->insert($email, $item->id)) {
$app->input->set('layout', 'error_invalid_email');
Expand Down Expand Up @@ -118,7 +118,7 @@ public function routedownload()
$component = FreeComponentSite::getInstance();
$id = $app->input->getInt('id');

/** @var \OSDownloadsModelItem $model */
/** @var \OsdownloadsModelItem $model */
$model = $component->getModel('Item');
$item = $model->getItem($id);

Expand Down
8 changes: 4 additions & 4 deletions src/admin/models/file.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

defined('_JEXEC') or die();

class OSDownloadsModelFile extends AdminModel
class OsdownloadsModelFile extends AdminModel
{
protected $uploadDir = OSDOWNLOADS_MEDIA . '/files';

Expand Down Expand Up @@ -240,8 +240,8 @@ protected function gcFileUploads()
*/
protected function uploadFile(&$data)
{
$app = Factory::getApplication();
$files = $app->input->files->get('jform', [], 'raw');
$app = Factory::getApplication();
$files = $app->input->files->get('jform', [], 'raw');
$upload = new Registry($files['file_path_upload']);

$fileName = $upload->get('name');
Expand All @@ -261,7 +261,7 @@ protected function uploadFile(&$data)

$uploadError = $upload->get('error');
if ($uploadError == UPLOAD_ERR_NO_FILE) {
throw New Exception(Text::_('COM_OSDOWNLOADS_UPLOAD_ERR_NO_FILE'));
throw new Exception(Text::_('COM_OSDOWNLOADS_UPLOAD_ERR_NO_FILE'));

} elseif ($uploadError != UPLOAD_ERR_OK) {
if (isset($this->uploadErrors[$uploadError])) {
Expand Down
2 changes: 1 addition & 1 deletion src/admin/models/files.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

defined('_JEXEC') or die();

class OSDownloadsModelFiles extends ListModel
class OsdownloadsModelFiles extends ListModel
{
/**
* @inheritDoc
Expand Down
2 changes: 1 addition & 1 deletion src/site/models/email.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

defined('_JEXEC') or die();

class OSDownloadsModelEmail extends EmailModel
class OsdownloadsModelEmail extends EmailModel
{

}
2 changes: 1 addition & 1 deletion src/site/models/item.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

defined('_JEXEC') or die();

class OSDownloadsModelItem extends ItemModel
class OsdownloadsModelItem extends ItemModel
{

}
2 changes: 1 addition & 1 deletion src/site/views/downloads/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ protected function setup()
{
parent::setup();

$model = BaseDatabaseModel::getInstance('Item', 'OSDownloadsModel');
$model = BaseDatabaseModel::getInstance('Item', 'OsdownloadsModel');
$this->setModel($model, true);
}

Expand Down

0 comments on commit 258a4f5

Please sign in to comment.