Skip to content

Commit 2ad8d61

Browse files
author
Martin Brecht-Precht
committed
Changed the type class constants to be more exact in naming.
1 parent e074bb8 commit 2ad8d61

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

src/Block/BlockInterface.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616
interface BlockInterface extends NodeInterface
1717
{
1818

19-
const TYPE_CODE = BlockType::TYPE_CODE;
20-
const TYPE_COMMENT = BlockType::TYPE_COMMENT;
21-
const TYPE_DIVISION = BlockType::TYPE_DIVISION;
22-
const TYPE_HEADING = BlockType::TYPE_HEADING;
23-
const TYPE_UNORDERED_LIST = BlockType::TYPE_UNORDERED_LIST;
24-
const TYPE_ORDERED_LIST = BlockType::TYPE_ORDERED_LIST;
25-
const TYPE_LIST_ITEM = BlockType::TYPE_LIST_ITEM;
26-
const TYPE_PARAGRAPH = BlockType::TYPE_PARAGRAPH;
27-
const TYPE_QUOTE = BlockType::TYPE_QUOTE;
19+
const BLOCK_TYPE_CODE = BlockType::TYPE_CODE;
20+
const BLOCK_TYPE_COMMENT = BlockType::TYPE_COMMENT;
21+
const BLOCK_TYPE_DIVISION = BlockType::TYPE_DIVISION;
22+
const BLOCK_TYPE_HEADING = BlockType::TYPE_HEADING;
23+
const BLOCK_TYPE_UNORDERED_LIST = BlockType::TYPE_UNORDERED_LIST;
24+
const BLOCK_TYPE_ORDERED_LIST = BlockType::TYPE_ORDERED_LIST;
25+
const BLOCK_TYPE_LIST_ITEM = BlockType::TYPE_LIST_ITEM;
26+
const BLOCK_TYPE_PARAGRAPH = BlockType::TYPE_PARAGRAPH;
27+
const BLOCK_TYPE_QUOTE = BlockType::TYPE_QUOTE;
2828

2929
/**
3030
* @return string

src/Block/ListBlockInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
interface ListBlockInterface extends BlockInterface
1111
{
1212

13-
const TYPE_ORDERED_LIST = 'ORDERED_LIST';
14-
const TYPE_UNORDERED_LIST = 'UNORDERED_LIST';
13+
const LIST_BLOCK_TYPE_ORDERED_LIST = 'ORDERED_LIST';
14+
const LIST_BLOCK_TYPE_UNORDERED_LIST = 'UNORDERED_LIST';
1515

1616
/**
1717
* @return string

src/Content/ContentInterface.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
interface ContentInterface extends NodeInterface
1818
{
1919

20-
const TYPE_CODE = ContentType::TYPE_CODE;
21-
const TYPE_EMPHASIS = ContentType::TYPE_EMPHASIS;
22-
const TYPE_IMAGE = ContentType::TYPE_IMAGE;
23-
const TYPE_LINE_BREAK = ContentType::TYPE_LINE_BREAK;
24-
const TYPE_LINK = ContentType::TYPE_LINK;
25-
const TYPE_TEXT = ContentType::TYPE_TEXT;
20+
const CONTENT_TYPE_CODE = ContentType::TYPE_CODE;
21+
const CONTENT_TYPE_EMPHASIS = ContentType::TYPE_EMPHASIS;
22+
const CONTENT_TYPE_IMAGE = ContentType::TYPE_IMAGE;
23+
const CONTENT_TYPE_LINE_BREAK = ContentType::TYPE_LINE_BREAK;
24+
const CONTENT_TYPE_LINK = ContentType::TYPE_LINK;
25+
const CONTENT_TYPE_TEXT = ContentType::TYPE_TEXT;
2626

2727
/**
2828
* @return string

0 commit comments

Comments
 (0)