Completed
Push — master ( 29af84...9c6b4e )
by judicael
04:46 queued 01:09
created
bundles/src/plugins/common/Controller.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -46,20 +46,20 @@
 block discarded – undo
46 46
 		
47 47
 		$this->installDb = function()
48 48
 		{
49
-		    $oDb = Config::get('Db');
50
-		    $oTables = json_decode(file_get_contents(__DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.preg_replace('/^.*\\\\([a-zA-Z0-9]+)$/', '$1', get_called_class()).DIRECTORY_SEPARATOR.'conf'.DIRECTORY_SEPARATOR.'Db.conf'));
49
+			$oDb = Config::get('Db');
50
+			$oTables = json_decode(file_get_contents(__DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.preg_replace('/^.*\\\\([a-zA-Z0-9]+)$/', '$1', get_called_class()).DIRECTORY_SEPARATOR.'conf'.DIRECTORY_SEPARATOR.'Db.conf'));
51 51
 		    
52
-		    $oDb->configuration->tables = $oTables;
52
+			$oDb->configuration->tables = $oTables;
53 53
 		    
54
-    	    $aOptions = [
55
-	           "p" => CREATE_PORTAL,
56
-	           "c" => true,
57
-	           "e" => true,
58
-	           "b" => json_encode($oDb)
59
-    	    ];
54
+			$aOptions = [
55
+			   "p" => CREATE_PORTAL,
56
+			   "c" => true,
57
+			   "e" => true,
58
+			   "b" => json_encode($oDb)
59
+			];
60 60
     	    
61
-    	    $oEntity = new Entity;
62
-    	    $oEntity->runScaffolding($aOptions);
61
+			$oEntity = new Entity;
62
+			$oEntity->runScaffolding($aOptions);
63 63
 		};
64 64
 	}
65 65
 }
Please login to merge, or discard this patch.
bundles/src/Batch/app/Controller/Entity.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -50,20 +50,20 @@
 block discarded – undo
50 50
 	 */
51 51
 	public function runScaffolding(array $aOptions = array())
52 52
 	{
53
-	    if (!isset($aOptions['p'])) { $aOptions['p'] = 'Batch'; }
53
+		if (!isset($aOptions['p'])) { $aOptions['p'] = 'Batch'; }
54 54
 	    
55
-	    if (!isset($aOptions['b'])) { $aOptions['b'] = json_encode(Config::get('Db', $aOptions['p'])); }
55
+		if (!isset($aOptions['b'])) { $aOptions['b'] = json_encode(Config::get('Db', $aOptions['p'])); }
56 56
 	    
57
-	    $aOptions['g'] = __DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.$aOptions['p'].DIRECTORY_SEPARATOR.'app'.DIRECTORY_SEPARATOR.'Entity'.DIRECTORY_SEPARATOR;
57
+		$aOptions['g'] = __DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.$aOptions['p'].DIRECTORY_SEPARATOR.'app'.DIRECTORY_SEPARATOR.'Entity'.DIRECTORY_SEPARATOR;
58 58
 	    
59
-	    $aOptions['h'] = __DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.$aOptions['p'].DIRECTORY_SEPARATOR.'app'.DIRECTORY_SEPARATOR.'Model'.DIRECTORY_SEPARATOR;
59
+		$aOptions['h'] = __DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.$aOptions['p'].DIRECTORY_SEPARATOR.'app'.DIRECTORY_SEPARATOR.'Model'.DIRECTORY_SEPARATOR;
60 60
 	    
61 61
 	    
62
-	    if (!defined('ENTITY_NAMESPACE')) { define('ENTITY_NAMESPACE', '\Venus\src\\'.$aOptions['p'].'\Entity'); }
62
+		if (!defined('ENTITY_NAMESPACE')) { define('ENTITY_NAMESPACE', '\Venus\src\\'.$aOptions['p'].'\Entity'); }
63 63
 	    
64
-	    if (!defined('MODEL_NAMESPACE')) { define('MODEL_NAMESPACE', '\Venus\src\\'.$aOptions['p'].'\Model'); }
64
+		if (!defined('MODEL_NAMESPACE')) { define('MODEL_NAMESPACE', '\Venus\src\\'.$aOptions['p'].'\Model'); }
65 65
 	    
66
-	    $oBatch = new BatchEntity;
67
-	    $oBatch->runScaffolding($aOptions);
66
+		$oBatch = new BatchEntity;
67
+		$oBatch->runScaffolding($aOptions);
68 68
 	}
69 69
 }
Please login to merge, or discard this patch.
bundles/src/Batch/app/Controller/Plugin.php 1 patch
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -47,20 +47,20 @@  discard block
 block discarded – undo
47 47
 	 */
48 48
 	public function install(array $aOptions = array())
49 49
 	{
50
-	    $sFile = file_get_contents(__DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'conf'.DIRECTORY_SEPARATOR.'Plugins.conf');
51
-	    $aPlugins = json_decode($sFile);
50
+		$sFile = file_get_contents(__DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'conf'.DIRECTORY_SEPARATOR.'Plugins.conf');
51
+		$aPlugins = json_decode($sFile);
52 52
 	    
53
-	    if (isset($aOptions['p'])) {
53
+		if (isset($aOptions['p'])) {
54 54
 	        
55
-	        define('CREATE_PORTAL', $aOptions['p']);
56
-	    }
55
+			define('CREATE_PORTAL', $aOptions['p']);
56
+		}
57 57
 	    
58
-	    foreach ($aPlugins->list as $sPluginName) {
58
+		foreach ($aPlugins->list as $sPluginName) {
59 59
 	        
60
-	        $sClassName = 'Venus\src\plugins\\'.$sPluginName.'\Controller\\'.$sPluginName;
61
-	        $oPlugin = new $sClassName;
62
-	        $oPlugin->install($aOptions['p']);
63
-	    }
60
+			$sClassName = 'Venus\src\plugins\\'.$sPluginName.'\Controller\\'.$sPluginName;
61
+			$oPlugin = new $sClassName;
62
+			$oPlugin->install($aOptions['p']);
63
+		}
64 64
 	}
65 65
 
66 66
 	/**
@@ -73,23 +73,23 @@  discard block
 block discarded – undo
73 73
 	 */
74 74
 	public function create(array $aOptions = array())
75 75
 	{
76
-	    $sDefaultFolder = __DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'plugins'.DIRECTORY_SEPARATOR.$aOptions['n'];
77
-	    mkdir($sDefaultFolder, 0777, true);
78
-	    mkdir($sDefaultFolder.DIRECTORY_SEPARATOR.'conf', 0777, true);
79
-	    mkdir($sDefaultFolder.DIRECTORY_SEPARATOR.'Controller', 0777, true);
80
-	    mkdir($sDefaultFolder.DIRECTORY_SEPARATOR.'data', 0777, true);
81
-	    mkdir($sDefaultFolder.DIRECTORY_SEPARATOR.'i18n', 0777, true);
82
-	    mkdir($sDefaultFolder.DIRECTORY_SEPARATOR.'meta', 0777, true);
83
-	    mkdir($sDefaultFolder.DIRECTORY_SEPARATOR.'public', 0777, true);
84
-	    mkdir($sDefaultFolder.DIRECTORY_SEPARATOR.'public'.DIRECTORY_SEPARATOR.'css', 0777, true);
85
-	    mkdir($sDefaultFolder.DIRECTORY_SEPARATOR.'public'.DIRECTORY_SEPARATOR.'img', 0777, true);
86
-	    mkdir($sDefaultFolder.DIRECTORY_SEPARATOR.'public'.DIRECTORY_SEPARATOR.'js', 0777, true);
87
-	    mkdir($sDefaultFolder.DIRECTORY_SEPARATOR.'View', 0777, true);
76
+		$sDefaultFolder = __DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'plugins'.DIRECTORY_SEPARATOR.$aOptions['n'];
77
+		mkdir($sDefaultFolder, 0777, true);
78
+		mkdir($sDefaultFolder.DIRECTORY_SEPARATOR.'conf', 0777, true);
79
+		mkdir($sDefaultFolder.DIRECTORY_SEPARATOR.'Controller', 0777, true);
80
+		mkdir($sDefaultFolder.DIRECTORY_SEPARATOR.'data', 0777, true);
81
+		mkdir($sDefaultFolder.DIRECTORY_SEPARATOR.'i18n', 0777, true);
82
+		mkdir($sDefaultFolder.DIRECTORY_SEPARATOR.'meta', 0777, true);
83
+		mkdir($sDefaultFolder.DIRECTORY_SEPARATOR.'public', 0777, true);
84
+		mkdir($sDefaultFolder.DIRECTORY_SEPARATOR.'public'.DIRECTORY_SEPARATOR.'css', 0777, true);
85
+		mkdir($sDefaultFolder.DIRECTORY_SEPARATOR.'public'.DIRECTORY_SEPARATOR.'img', 0777, true);
86
+		mkdir($sDefaultFolder.DIRECTORY_SEPARATOR.'public'.DIRECTORY_SEPARATOR.'js', 0777, true);
87
+		mkdir($sDefaultFolder.DIRECTORY_SEPARATOR.'View', 0777, true);
88 88
 	    
89
-	    file_put_contents($sDefaultFolder.DIRECTORY_SEPARATOR.'conf'.DIRECTORY_SEPARATOR.'Db.conf', '{}');
90
-	    file_put_contents($sDefaultFolder.DIRECTORY_SEPARATOR.'conf'.DIRECTORY_SEPARATOR.'Plugin.conf', '{}');
89
+		file_put_contents($sDefaultFolder.DIRECTORY_SEPARATOR.'conf'.DIRECTORY_SEPARATOR.'Db.conf', '{}');
90
+		file_put_contents($sDefaultFolder.DIRECTORY_SEPARATOR.'conf'.DIRECTORY_SEPARATOR.'Plugin.conf', '{}');
91 91
 	    
92
-	    $sContent = "<?php
92
+		$sContent = "<?php
93 93
 
94 94
 /**
95 95
  * Controller of the plugin ".$aOptions['n']."
@@ -157,9 +157,9 @@  discard block
 block discarded – undo
157 157
     }
158 158
 }";
159 159
 	    
160
-	    file_put_contents($sDefaultFolder.DIRECTORY_SEPARATOR.'Controller'.DIRECTORY_SEPARATOR.$aOptions['n'].'.php', $sContent);
161
-	    mkdir($sDefaultFolder.DIRECTORY_SEPARATOR.'i18n'.DIRECTORY_SEPARATOR.'en_US'.DIRECTORY_SEPARATOR.'LC_MESSAGES', 0777, true);
162
-	    file_put_contents($sDefaultFolder.DIRECTORY_SEPARATOR.'meta'.DIRECTORY_SEPARATOR.'LICENSE.md', '');
163
-	    file_put_contents($sDefaultFolder.DIRECTORY_SEPARATOR.'meta'.DIRECTORY_SEPARATOR.'README.md', '');
160
+		file_put_contents($sDefaultFolder.DIRECTORY_SEPARATOR.'Controller'.DIRECTORY_SEPARATOR.$aOptions['n'].'.php', $sContent);
161
+		mkdir($sDefaultFolder.DIRECTORY_SEPARATOR.'i18n'.DIRECTORY_SEPARATOR.'en_US'.DIRECTORY_SEPARATOR.'LC_MESSAGES', 0777, true);
162
+		file_put_contents($sDefaultFolder.DIRECTORY_SEPARATOR.'meta'.DIRECTORY_SEPARATOR.'LICENSE.md', '');
163
+		file_put_contents($sDefaultFolder.DIRECTORY_SEPARATOR.'meta'.DIRECTORY_SEPARATOR.'README.md', '');
164 164
 	}
165 165
 }
Please login to merge, or discard this patch.
bundles/conf/AutoLoad.php 1 patch
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -17,45 +17,45 @@  discard block
 block discarded – undo
17 17
 spl_autoload_register(function (string $sClassName)
18 18
 {
19 19
 
20
-    $sClassName = ltrim($sClassName, '\\');
21
-    $sFileName  = '';
22
-    $sNamespace = '';
23
-    $iLastNsPos = strrpos($sClassName, '\\');
20
+	$sClassName = ltrim($sClassName, '\\');
21
+	$sFileName  = '';
22
+	$sNamespace = '';
23
+	$iLastNsPos = strrpos($sClassName, '\\');
24 24
 
25
-    if ($iLastNsPos) {
25
+	if ($iLastNsPos) {
26 26
 
27
-        $sNamespace = substr($sClassName, 0, $iLastNsPos);
28
-        $sClassName = substr($sClassName, $iLastNsPos + 1);
27
+		$sNamespace = substr($sClassName, 0, $iLastNsPos);
28
+		$sClassName = substr($sClassName, $iLastNsPos + 1);
29 29
 		$sFileName  = str_replace('\\', DIRECTORY_SEPARATOR, $sNamespace).DIRECTORY_SEPARATOR;
30
-    }
30
+	}
31 31
 
32
-    $sFileName = str_replace('/', '\\', $sFileName);
32
+	$sFileName = str_replace('/', '\\', $sFileName);
33 33
     
34
-    $sFileName .= $sClassName.'.php';
34
+	$sFileName .= $sClassName.'.php';
35 35
 
36
-    if (defined('PORTAL')) {
36
+	if (defined('PORTAL')) {
37 37
 
38
-        $sFileClassName = str_replace(PORTAL, PORTAL.DIRECTORY_SEPARATOR.'app', str_replace(['\\', '/'], DIRECTORY_SEPARATOR, str_replace('conf', DIRECTORY_SEPARATOR, __DIR__).str_replace('Venus\\', '', $sFileName)));
39
-        $sFileClassName = preg_replace('/(tests\\\\[^\\\\]+\\\\)/', '$1app\\', $sFileClassName);
40
-        $sFileClassName = preg_replace('/(src\\\\[^\\\\]+\\\\)/', '$1app\\', $sFileClassName);
41
-        $sFileClassName = str_replace('\\\\', '\\', $sFileClassName);
42
-        $sFileClassName = preg_replace('#bundles//tests/([^/]+)#', 'bundles/tests/$1/app', $sFileClassName);
43
-        $sFileClassName = preg_replace('#bundles//src/([^/]+)#', 'bundles/src/$1/app', $sFileClassName);
44
-        $sFileClassName = str_replace('app\\app', 'app', $sFileClassName);
45
-        $sFileClassName = str_replace('app/app', 'app', $sFileClassName);
38
+		$sFileClassName = str_replace(PORTAL, PORTAL.DIRECTORY_SEPARATOR.'app', str_replace(['\\', '/'], DIRECTORY_SEPARATOR, str_replace('conf', DIRECTORY_SEPARATOR, __DIR__).str_replace('Venus\\', '', $sFileName)));
39
+		$sFileClassName = preg_replace('/(tests\\\\[^\\\\]+\\\\)/', '$1app\\', $sFileClassName);
40
+		$sFileClassName = preg_replace('/(src\\\\[^\\\\]+\\\\)/', '$1app\\', $sFileClassName);
41
+		$sFileClassName = str_replace('\\\\', '\\', $sFileClassName);
42
+		$sFileClassName = preg_replace('#bundles//tests/([^/]+)#', 'bundles/tests/$1/app', $sFileClassName);
43
+		$sFileClassName = preg_replace('#bundles//src/([^/]+)#', 'bundles/src/$1/app', $sFileClassName);
44
+		$sFileClassName = str_replace('app\\app', 'app', $sFileClassName);
45
+		$sFileClassName = str_replace('app/app', 'app', $sFileClassName);
46 46
 
47
-        if (strstr($sFileName, 'Venus\\') && file_exists($sFileClassName)) {
47
+		if (strstr($sFileName, 'Venus\\') && file_exists($sFileClassName)) {
48 48
 
49
-        	require $sFileClassName;
50
-        }
51
-    }
52
-    else {
49
+			require $sFileClassName;
50
+		}
51
+	}
52
+	else {
53 53
 
54
-        if (strstr($sFileName, 'Venus\\') && file_exists(preg_replace('#^(src/[a-zA-Z0-9_]+/)#', '$1app/', str_replace(['\\', '/'], '/', str_replace('conf', '', __DIR__).str_replace('Venus\\', '', $sFileName))))) {
54
+		if (strstr($sFileName, 'Venus\\') && file_exists(preg_replace('#^(src/[a-zA-Z0-9_]+/)#', '$1app/', str_replace(['\\', '/'], '/', str_replace('conf', '', __DIR__).str_replace('Venus\\', '', $sFileName))))) {
55 55
 
56
-            require preg_replace('#^(src/[a-zA-Z0-9_]+/)#', '$1app/', str_replace(['\\', '/'], '/', str_replace('conf', '', __DIR__).str_replace('Venus\\', '', $sFileName)));
57
-        }
58
-    }
56
+			require preg_replace('#^(src/[a-zA-Z0-9_]+/)#', '$1app/', str_replace(['\\', '/'], '/', str_replace('conf', '', __DIR__).str_replace('Venus\\', '', $sFileName)));
57
+		}
58
+	}
59 59
 });
60 60
 
61 61
 /**
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
 if (file_exists(preg_replace('#bundles[/\\\\]conf#', '', __DIR__).'vendor/autoload.php')) {
66 66
 
67
-    include preg_replace('#bundles[/\\\\]conf#', '', __DIR__).'vendor/autoload.php';
67
+	include preg_replace('#bundles[/\\\\]conf#', '', __DIR__).'vendor/autoload.php';
68 68
 }
69 69
 
70 70
 /**
@@ -75,10 +75,10 @@  discard block
 block discarded – undo
75 75
 
76 76
 if (isset($oConfig) && isset($oConfig->autoload)) {
77 77
     
78
-    $oAutoloadConf = $oConfig->autoload;
78
+	$oAutoloadConf = $oConfig->autoload;
79 79
     
80
-    foreach ($oAutoloadConf as $sFile) {
80
+	foreach ($oAutoloadConf as $sFile) {
81 81
     
82
-        require __DIR__.'/../'.$sFile;
83
-    }
82
+		require __DIR__.'/../'.$sFile;
83
+	}
84 84
 }
Please login to merge, or discard this patch.
bundles/lib/Request/RequestInterface.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -9,11 +9,11 @@
 block discarded – undo
9 9
 
10 10
 interface RequestInterface
11 11
 {
12
-    /**
13
-     * get parameter
14
-     * @param string $name
15
-     * @param string $default
16
-     * @return string
17
-     */
18
-    public function get(string $name, string $default = null) : string;
12
+	/**
13
+	 * get parameter
14
+	 * @param string $name
15
+	 * @param string $default
16
+	 * @return string
17
+	 */
18
+	public function get(string $name, string $default = null) : string;
19 19
 }
Please login to merge, or discard this patch.
bundles/lib/Request/Files.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -9,19 +9,19 @@
 block discarded – undo
9 9
 
10 10
 class Files implements RequestInterface
11 11
 {
12
-    /**
13
-     * get parameter
14
-     * @param string $name
15
-     * @param string $default
16
-     * @return string
17
-     */
18
-    public function get(string $name, string $default = null) : string
19
-    {
20
-        if (isset($_FILES[$name]) && $_FILES[$name] != '') {
21
-            return $_FILES[$name];
22
-        }
23
-        else if ($default !== null) {
24
-            return $default;
25
-        }
26
-    }
12
+	/**
13
+	 * get parameter
14
+	 * @param string $name
15
+	 * @param string $default
16
+	 * @return string
17
+	 */
18
+	public function get(string $name, string $default = null) : string
19
+	{
20
+		if (isset($_FILES[$name]) && $_FILES[$name] != '') {
21
+			return $_FILES[$name];
22
+		}
23
+		else if ($default !== null) {
24
+			return $default;
25
+		}
26
+	}
27 27
 }
Please login to merge, or discard this patch.
bundles/lib/ObjectOperation.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 	{
38 38
 		if ( is_object($mObject)) {
39 39
 			
40
-		    $mObject = (array) $mObject;
40
+			$mObject = (array) $mObject;
41 41
 		}
42 42
 
43 43
 
Please login to merge, or discard this patch.
bundles/lib/Log/LogLevel.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -7,12 +7,12 @@
 block discarded – undo
7 7
  */
8 8
 class LogLevel
9 9
 {
10
-    const EMERGENCY = 'emergency';
11
-    const ALERT     = 'alert';
12
-    const CRITICAL  = 'critical';
13
-    const ERROR     = 'error';
14
-    const WARNING   = 'warning';
15
-    const NOTICE    = 'notice';
16
-    const INFO      = 'info';
17
-    const DEBUG     = 'debug';
10
+	const EMERGENCY = 'emergency';
11
+	const ALERT     = 'alert';
12
+	const CRITICAL  = 'critical';
13
+	const ERROR     = 'error';
14
+	const WARNING   = 'warning';
15
+	const NOTICE    = 'notice';
16
+	const INFO      = 'info';
17
+	const DEBUG     = 'debug';
18 18
 }
Please login to merge, or discard this patch.
bundles/lib/Log/LoggerInterface.php 1 patch
Indentation   +84 added lines, -84 removed lines patch added patch discarded remove patch
@@ -19,96 +19,96 @@
 block discarded – undo
19 19
  */
20 20
 interface LoggerInterface
21 21
 {
22
-    /**
23
-     * System is unusable.
24
-     *
25
-     * @param string $message
26
-     * @param array $context
27
-     * @return null
28
-     */
29
-    public function emergency($message, array $context = array());
22
+	/**
23
+	 * System is unusable.
24
+	 *
25
+	 * @param string $message
26
+	 * @param array $context
27
+	 * @return null
28
+	 */
29
+	public function emergency($message, array $context = array());
30 30
 
31
-    /**
32
-     * Action must be taken immediately.
33
-     *
34
-     * Example: Entire website down, database unavailable, etc. This should
35
-     * trigger the SMS alerts and wake you up.
36
-     *
37
-     * @param string $message
38
-     * @param array $context
39
-     * @return null
40
-     */
41
-    public function alert($message, array $context = array());
31
+	/**
32
+	 * Action must be taken immediately.
33
+	 *
34
+	 * Example: Entire website down, database unavailable, etc. This should
35
+	 * trigger the SMS alerts and wake you up.
36
+	 *
37
+	 * @param string $message
38
+	 * @param array $context
39
+	 * @return null
40
+	 */
41
+	public function alert($message, array $context = array());
42 42
 
43
-    /**
44
-     * Critical conditions.
45
-     *
46
-     * Example: Application component unavailable, unexpected exception.
47
-     *
48
-     * @param string $message
49
-     * @param array $context
50
-     * @return null
51
-     */
52
-    public function critical($message, array $context = array());
43
+	/**
44
+	 * Critical conditions.
45
+	 *
46
+	 * Example: Application component unavailable, unexpected exception.
47
+	 *
48
+	 * @param string $message
49
+	 * @param array $context
50
+	 * @return null
51
+	 */
52
+	public function critical($message, array $context = array());
53 53
 
54
-    /**
55
-     * Runtime errors that do not require immediate action but should typically
56
-     * be logged and monitored.
57
-     *
58
-     * @param string $message
59
-     * @param array $context
60
-     * @return null
61
-     */
62
-    public function error($message, array $context = array());
54
+	/**
55
+	 * Runtime errors that do not require immediate action but should typically
56
+	 * be logged and monitored.
57
+	 *
58
+	 * @param string $message
59
+	 * @param array $context
60
+	 * @return null
61
+	 */
62
+	public function error($message, array $context = array());
63 63
 
64
-    /**
65
-     * Exceptional occurrences that are not errors.
66
-     *
67
-     * Example: Use of deprecated APIs, poor use of an API, undesirable things
68
-     * that are not necessarily wrong.
69
-     *
70
-     * @param string $message
71
-     * @param array $context
72
-     * @return null
73
-     */
74
-    public function warning($message, array $context = array());
64
+	/**
65
+	 * Exceptional occurrences that are not errors.
66
+	 *
67
+	 * Example: Use of deprecated APIs, poor use of an API, undesirable things
68
+	 * that are not necessarily wrong.
69
+	 *
70
+	 * @param string $message
71
+	 * @param array $context
72
+	 * @return null
73
+	 */
74
+	public function warning($message, array $context = array());
75 75
 
76
-    /**
77
-     * Normal but significant events.
78
-     *
79
-     * @param string $message
80
-     * @param array $context
81
-     * @return null
82
-     */
83
-    public function notice($message, array $context = array());
76
+	/**
77
+	 * Normal but significant events.
78
+	 *
79
+	 * @param string $message
80
+	 * @param array $context
81
+	 * @return null
82
+	 */
83
+	public function notice($message, array $context = array());
84 84
 
85
-    /**
86
-     * Interesting events.
87
-     *
88
-     * Example: User logs in, SQL logs.
89
-     *
90
-     * @param string $message
91
-     * @param array $context
92
-     * @return null
93
-     */
94
-    public function info($message, array $context = array());
85
+	/**
86
+	 * Interesting events.
87
+	 *
88
+	 * Example: User logs in, SQL logs.
89
+	 *
90
+	 * @param string $message
91
+	 * @param array $context
92
+	 * @return null
93
+	 */
94
+	public function info($message, array $context = array());
95 95
 
96
-    /**
97
-     * Detailed debug information.
98
-     *
99
-     * @param string $message
100
-     * @param array $context
101
-     * @return null
102
-     */
103
-    public function debug($message, array $context = array());
96
+	/**
97
+	 * Detailed debug information.
98
+	 *
99
+	 * @param string $message
100
+	 * @param array $context
101
+	 * @return null
102
+	 */
103
+	public function debug($message, array $context = array());
104 104
 
105
-    /**
106
-     * Logs with an arbitrary level.
107
-     *
108
-     * @param mixed $level
109
-     * @param string $message
110
-     * @param array $context
111
-     * @return null
112
-     */
113
-    public function log($level, $message, array $context = array());
105
+	/**
106
+	 * Logs with an arbitrary level.
107
+	 *
108
+	 * @param mixed $level
109
+	 * @param string $message
110
+	 * @param array $context
111
+	 * @return null
112
+	 */
113
+	public function log($level, $message, array $context = array());
114 114
 }
Please login to merge, or discard this patch.