File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 1010class 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}
Original file line number Diff line number Diff line change 1010class 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}
Original file line number Diff line number Diff line change 1010class 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}
Original file line number Diff line number Diff line change 1010class 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}
Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments