Skip to content

Commit

Permalink
Standards fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
billtomczak committed Jun 6, 2023
1 parent 05ccc23 commit 1d4d59f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/site/views/download/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
use Joomla\CMS\MVC\View\HtmlView;
use Joomla\CMS\Plugin\PluginHelper;

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

class OSDownloadsViewDownload extends HtmlView
{
Expand Down Expand Up @@ -116,7 +119,7 @@ public function display($tpl = null)
return;
}

$this->contentType = File::getContentTypeFromFileName($this->fileFullPath);
$this->contentType = File::getContentTypeFromFileName($this->fileFullPath);

$model->incrementDownloadCount($id);
parent::display($tpl);
Expand All @@ -128,7 +131,7 @@ public function display($tpl = null)
* @return void
* @throws Exception
*/
protected function displayError($message)
protected function displayError(string $message): void
{
Factory::getApplication()->enqueueMessage($message, 'error');

Expand Down

0 comments on commit 1d4d59f

Please sign in to comment.