Formatting code and eliminating possible errors
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
		@@ -26,10 +26,10 @@ defined('MOODLE_INTERNAL') || die();
 | 
			
		||||
 | 
			
		||||
$observers = array(
 | 
			
		||||
    array(
 | 
			
		||||
        "callback"    => "\local_webhooks\\handler::events",
 | 
			
		||||
        "eventname"   => "*",
 | 
			
		||||
        "includefile" => null,
 | 
			
		||||
        "internal"    => true,
 | 
			
		||||
        "priority"    => 200
 | 
			
		||||
    )
 | 
			
		||||
        'callback'    => '\local_webhooks\handler::events',
 | 
			
		||||
        'eventname'   => '*',
 | 
			
		||||
        'includefile' => null,
 | 
			
		||||
        'internal'    => true,
 | 
			
		||||
        'priority'    => 200,
 | 
			
		||||
    ),
 | 
			
		||||
);
 | 
			
		||||
@@ -1,5 +1,7 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8" ?>
 | 
			
		||||
<XMLDB PATH="local/webhooks/db" VERSION="2018061900" COMMENT="XMLDB file for Moodle" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../lib/xmldb/xmldb.xsd">
 | 
			
		||||
<XMLDB PATH="local/webhooks/db" VERSION="2018061900" COMMENT="XMLDB file for Moodle"
 | 
			
		||||
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 | 
			
		||||
       xsi:noNamespaceSchemaLocation="../../../lib/xmldb/xmldb.xsd">
 | 
			
		||||
    <TABLES>
 | 
			
		||||
        <TABLE NAME="local_webhooks_service" COMMENT="A table for storing callback services.">
 | 
			
		||||
            <FIELDS>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user