Skip to content

Commit a914e8e

Browse files
author
Martin Brecht-Precht
committed
Language level migration.
1 parent 5eb90ec commit a914e8e

7 files changed

Lines changed: 95 additions & 95 deletions

File tree

composer.json

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
{
2-
"name": "markdom/handler-interface",
3-
"type": "library",
4-
"description": "Handler and dispatcher interfaces written in PHP",
5-
"keywords": [
6-
"Markdom",
7-
"Handler",
8-
"Dispatcher",
9-
"Interface"
10-
],
11-
"homepage": "http://markenwerk.net/",
12-
"license": "MIT",
13-
"authors": [
14-
{
15-
"name": "Martin Brecht-Precht",
16-
"email": "mb@markenwerk.net",
17-
"homepage": "http://markenwerk.net"
18-
}
19-
],
20-
"autoload": {
21-
"psr-4": {
22-
"Markdom\\Common\\": "src/Common",
23-
"Markdom\\DispatcherInterface\\": "src/DispatcherInterface",
24-
"Markdom\\HandlerInterface\\": "src/HandlerInterface"
25-
}
26-
},
27-
"require": {
28-
"php": ">=5.3"
29-
}
2+
"name": "markdom/handler-interface",
3+
"type": "library",
4+
"description": "Handler and dispatcher interfaces written in PHP",
5+
"keywords": [
6+
"Markdom",
7+
"Handler",
8+
"Dispatcher",
9+
"Interface"
10+
],
11+
"homepage": "http://markenwerk.net/",
12+
"license": "MIT",
13+
"authors": [
14+
{
15+
"name": "Martin Brecht-Precht",
16+
"email": "mb@markenwerk.net",
17+
"homepage": "http://markenwerk.net"
18+
}
19+
],
20+
"autoload": {
21+
"psr-4": {
22+
"Markdom\\Common\\": "src/Common",
23+
"Markdom\\DispatcherInterface\\": "src/DispatcherInterface",
24+
"Markdom\\HandlerInterface\\": "src/HandlerInterface"
25+
}
26+
},
27+
"require": {
28+
"php": "^7.1"
29+
}
3030
}

src/Common/BlockType.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
class BlockType
1111
{
1212

13-
const TYPE_CODE = 'CODE';
14-
const TYPE_COMMENT = 'COMMENT';
15-
const TYPE_DIVISION = 'DIVISION';
16-
const TYPE_HEADING = 'HEADING';
17-
const TYPE_UNORDERED_LIST = 'UNORDERED_LIST';
18-
const TYPE_ORDERED_LIST = 'ORDERED_LIST';
19-
const TYPE_LIST_ITEM = 'LIST_ITEM';
20-
const TYPE_PARAGRAPH = 'PARAGRAPH';
21-
const TYPE_QUOTE = 'QUOTE';
13+
public const TYPE_CODE = 'CODE';
14+
public const TYPE_COMMENT = 'COMMENT';
15+
public const TYPE_DIVISION = 'DIVISION';
16+
public const TYPE_HEADING = 'HEADING';
17+
public const TYPE_UNORDERED_LIST = 'UNORDERED_LIST';
18+
public const TYPE_ORDERED_LIST = 'ORDERED_LIST';
19+
public const TYPE_LIST_ITEM = 'LIST_ITEM';
20+
public const TYPE_PARAGRAPH = 'PARAGRAPH';
21+
public const TYPE_QUOTE = 'QUOTE';
2222

2323
}

src/Common/ContentType.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
class ContentType
1111
{
1212

13-
const TYPE_CODE = 'CODE';
14-
const TYPE_EMPHASIS = 'EMPHASIS';
15-
const TYPE_IMAGE = 'IMAGE';
16-
const TYPE_LINE_BREAK = 'LINE_BREAK';
17-
const TYPE_LINK = 'LINK';
18-
const TYPE_TEXT = 'TEXT';
13+
public const TYPE_CODE = 'CODE';
14+
public const TYPE_EMPHASIS = 'EMPHASIS';
15+
public const TYPE_IMAGE = 'IMAGE';
16+
public const TYPE_LINE_BREAK = 'LINE_BREAK';
17+
public const TYPE_LINK = 'LINK';
18+
public const TYPE_TEXT = 'TEXT';
1919

2020
}

src/Common/EmphasisLevel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
class EmphasisLevel
1111
{
1212

13-
const LEVEL_1 = 1;
14-
const LEVEL_2 = 2;
13+
public const LEVEL_1 = 1;
14+
public const LEVEL_2 = 2;
1515

1616
}

src/Common/HeadingLevel.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
class HeadingLevel
1111
{
1212

13-
const LEVEL_1 = 1;
14-
const LEVEL_2 = 2;
15-
const LEVEL_3 = 3;
16-
const LEVEL_4 = 4;
17-
const LEVEL_5 = 5;
18-
const LEVEL_6 = 6;
13+
public const LEVEL_1 = 1;
14+
public const LEVEL_2 = 2;
15+
public const LEVEL_3 = 3;
16+
public const LEVEL_4 = 4;
17+
public const LEVEL_5 = 5;
18+
public const LEVEL_6 = 6;
1919

2020
}

src/DispatcherInterface/DispatcherInterface.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,18 @@ interface DispatcherInterface
2020
public function __construct(HandlerInterface $markdomHandler);
2121

2222
/**
23-
* @return boolean
23+
* @return bool
2424
*/
25-
public function getDispatchCommentBlocks();
25+
public function getDispatchCommentBlocks():bool ;
2626

2727
/**
28-
* @param boolean $dispatchCommentBlocks
28+
* @param bool $dispatchCommentBlocks
2929
* @return $this
3030
*/
31-
public function setDispatchCommentBlocks($dispatchCommentBlocks);
31+
public function setDispatchCommentBlocks(bool $dispatchCommentBlocks);
3232

3333
/**
34-
* @param $source
34+
* @param mixed $source
3535
* @return $this
3636
*/
3737
public function process($source);

0 commit comments

Comments
 (0)