Skip to content

Commit 0e40ed9

Browse files
committed
change the static properties of the ContentType class to const
1 parent 1a8f1ce commit 0e40ed9

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

lib/Message/ContentType.php

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@
1010

1111
class ContentType
1212
{
13-
public static $Text = 'text/plain';
14-
public static $Html = 'text/html';
15-
public static $Png = 'image/png';
16-
public static $Pdf = 'application/pdf';
17-
public static $Json = 'application/json';
18-
public static $Form = 'application/x-www-form-urlencoded';
19-
public static $Data = 'multipart/form-data';
13+
public const Html = 'text/html';
14+
public const Text = 'text/plain';
15+
public const Gif = 'image/gif';
16+
public const Png = 'image/png';
17+
public const Jpeg = 'image/jpeg';
18+
public const Json = 'application/json';
19+
public const Pdf = 'application/pdf';
20+
public const Form = 'application/x-www-form-urlencoded';
21+
public const Data = 'multipart/form-data';
2022
}

0 commit comments

Comments
 (0)