X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fcontent%2FJsonContentHandler.php;h=eb1c67d5d2d11725bf9eff09c1f0acf4fdd3824b;hb=c1efb8dfee7f57dc680df42980b7df4f636b5560;hp=392ce37bebaabd9cb017fd315d4b00cfaacfa401;hpb=0e0701b2b015ca8eab6456b5e802f9b3611229d4;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/content/JsonContentHandler.php b/includes/content/JsonContentHandler.php index 392ce37beb..eb1c67d5d2 100644 --- a/includes/content/JsonContentHandler.php +++ b/includes/content/JsonContentHandler.php @@ -1,26 +1,42 @@ - * @author Kunal Mehta + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * + * @file */ /** + * Content handler for JSON. + * + * @author Ori Livneh + * @author Kunal Mehta + * * @since 1.24 + * @ingroup Content */ class JsonContentHandler extends CodeContentHandler { public function __construct( $modelId = CONTENT_MODEL_JSON ) { - parent::__construct( $modelId, array( CONTENT_FORMAT_JSON ) ); + parent::__construct( $modelId, [ CONTENT_FORMAT_JSON ] ); } /** * @return string */ protected function getContentClass() { - return 'JsonContent'; + return JsonContent::class; } }