Skip to content

Commit

Permalink
Merge branch 'release/2.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
adrenth committed Jul 13, 2021
2 parents 7034c3b + b263560 commit 1e59eac
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [ 8.0, 7.4, 7.3, 7.2 ]
php: [ 8.0, 7.4 ]
stability: [ prefer-lowest, prefer-stable ]

name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
Expand Down
20 changes: 2 additions & 18 deletions Plugin.php
Original file line number Diff line number Diff line change
@@ -1,24 +1,14 @@
<?php

/** @noinspection PhpMissingParentCallCommonInspection */

declare(strict_types=1);

namespace Vdlp\SecurityTxt;

use System\Classes\PluginBase;
use Vdlp\SecurityTxt\Models;

/**
* Class Plugin
*
* @package Vdlp\SecurityTxt
*/
class Plugin extends PluginBase
final class Plugin extends PluginBase
{
/**
* {@inheritDoc}
*/
public function pluginDetails(): array
{
return [
Expand All @@ -29,9 +19,6 @@ public function pluginDetails(): array
];
}

/**
* {@inheritDoc}
*/
public function registerPermissions(): array
{
return [
Expand All @@ -42,9 +29,6 @@ public function registerPermissions(): array
];
}

/**
* {@inheritDoc}
*/
public function registerSettings(): array
{
return [
Expand All @@ -57,7 +41,7 @@ public function registerSettings(): array
'permissions' => [
'vdlp.securitytxt.access_settings',
],
]
],
];
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Go to the Settings section and provide the required information.

## Requirements

PHP ^7.0
PHP 7.4 or higher

## Installation

Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vdlp/oc-securitytxt-plugin",
"type": "october-plugin",
"description": "Define security policies for your October CMS website",
"description": "Define security policies for your website.",
"license": "GPL-2.0",
"authors": [
{
Expand All @@ -10,12 +10,13 @@
}
],
"require": {
"php": "^7.2||^8.0",
"php": "^7.4 || ^8.0",
"composer/installers": "^1.0"
},
"archive": {
"exclude": [
".gitignore",
".github",
".idea/"
]
}
Expand Down
18 changes: 3 additions & 15 deletions models/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@

use October\Rain\Database\Model;

/**
* Class Settings
*
* @package Vdlp\SecurityTxt\Models
*/
class Settings extends Model
final class Settings extends Model
{
/**
* @var array
Expand All @@ -20,13 +15,6 @@ class Settings extends Model
'System.Behaviors.SettingsModel'
];

/**
* @var string
*/
public $settingsCode = 'vdlp_security_settings';

/**
* @var string
*/
public $settingsFields = 'fields.yaml';
public string $settingsCode = 'vdlp_security_settings';
public string $settingsFields = 'fields.yaml';
}
1 change: 1 addition & 0 deletions updates/version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
1.0.1: Update plugin documentation
1.0.2: Minor code improvements
1.1.0: Update plugin dependencies
2.0.0: Add support for PHP 7.4 or higher

0 comments on commit 1e59eac

Please sign in to comment.