Skip to content

Commit

Permalink
PSR fix constant visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
annda committed Aug 15, 2024
1 parent 7b2a7ca commit cec4905
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/Actions/DownloadAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/
class DownloadAction extends AbstractAction
{
const DATA_DIRECTORY = __DIR__ . '/../../data/';
public const DATA_DIRECTORY = __DIR__ . '/../../data/';

/**
* Action to download file
Expand Down
8 changes: 4 additions & 4 deletions src/FormGenerator/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
*/
class Form
{
const DATA_DIR = __DIR__ . '/../../data/';
public const DATA_DIR = __DIR__ . '/../../data/';

const MODE_SHOW = 'show';
const MODE_SAVE = 'save';
const MODE_SEND = 'send';
public const MODE_SHOW = 'show';
public const MODE_SAVE = 'save';
public const MODE_SEND = 'send';

/**
* @var string
Expand Down
2 changes: 1 addition & 1 deletion src/FormGenerator/FormRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/
class FormRenderer
{
const TEMPLATE_DIR = __DIR__ . '/../../view/';
public const TEMPLATE_DIR = __DIR__ . '/../../view/';

/**
* @var TemplateWrapper
Expand Down
2 changes: 1 addition & 1 deletion src/FormGenerator/FormValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
class FormValidator
{
const COLORS_BULMA = [
public const COLORS_BULMA = [
'white',
'black',
'light',
Expand Down
2 changes: 1 addition & 1 deletion src/Service/FileExporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
class FileExporter
{
const ROOT_DIR = __DIR__ . '/../../';
public const ROOT_DIR = __DIR__ . '/../../';

/**
* @var string
Expand Down
6 changes: 3 additions & 3 deletions src/Service/LangManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
*/
class LangManager
{
const LANG_FILE_PATH_GLOBAL = __DIR__ . '/../../conf/language.default.yaml';
const LANG_FILE_PATH_LOCAL = __DIR__ . '/../../conf/language.local.yaml';
const LANG_FILE_PATH_DYNAMIC = __DIR__ . '/../../conf/language.{{language}}.yaml';
public const LANG_FILE_PATH_GLOBAL = __DIR__ . '/../../conf/language.default.yaml';
public const LANG_FILE_PATH_LOCAL = __DIR__ . '/../../conf/language.local.yaml';
public const LANG_FILE_PATH_DYNAMIC = __DIR__ . '/../../conf/language.{{language}}.yaml';

/**
* Language strings.
Expand Down

0 comments on commit cec4905

Please sign in to comment.