Completed
Push — master ( 84f8b9...29b389 )
by Angus
08:20
created
application/core/MY_Log.php 1 patch
Upper-Lower-Casing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php defined('BASEPATH') OR exit('No direct script access allowed');
1
+<?php defined('BASEPATH') or exit('No direct script access allowed');
2 2
 
3 3
 /*
4 4
  * CodeIgniter Monolog Plus
@@ -82,18 +82,18 @@  discard block
 block discarded – undo
82 82
 			{
83 83
 				case 'file':
84 84
 					$handler = new RotatingFileHandler($this->config['file_logfile']);
85
-					$formatter = new LineFormatter(null, null, $config['file_multiline']);
85
+					$formatter = new LineFormatter(NULL, NULL, $config['file_multiline']);
86 86
 					$handler->setFormatter($formatter);
87 87
 					break;
88 88
 
89 89
 				case 'ci_file':
90 90
 					$handler = new RotatingFileHandler($this->config['ci_file_logfile']);
91
-					$formatter = new LineFormatter("%level_name% - %datetime% --> %message% %extra%\n", null, $config['ci_file_multiline']);
91
+					$formatter = new LineFormatter("%level_name% - %datetime% --> %message% %extra%\n", NULL, $config['ci_file_multiline']);
92 92
 					$handler->setFormatter($formatter);
93 93
 					break;
94 94
 
95 95
 				case 'new_relic':
96
-					$handler = new NewRelicHandler(Logger::ERROR, true, $this->config['new_relic_app_name']);
96
+					$handler = new NewRelicHandler(Logger::ERROR, TRUE, $this->config['new_relic_app_name']);
97 97
 					break;
98 98
 
99 99
 				case 'hipchat':
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 
113 113
 				case 'papertrail':
114 114
 					$handler = new SyslogUdpHandler($this->config['papertrail_host'], $this->config['papertrail_port']);
115
-					$formatter = new LineFormatter("%channel%.%level_name%: %message% %extra%", null, $config['papertrail_multiline']);
115
+					$formatter = new LineFormatter("%channel%.%level_name%: %message% %extra%", NULL, $config['papertrail_multiline']);
116 116
 					$handler->setFormatter($formatter);
117 117
 					break;
118 118
 
@@ -157,10 +157,10 @@  discard block
 block discarded – undo
157 157
 			foreach ($this->config['exclusion_list'] as $findme)
158 158
 			{
159 159
 				$pos = strpos($msg, $findme);
160
-				if ($pos !== false)
160
+				if ($pos !== FALSE)
161 161
 				{
162 162
 					// just exit now - we don't want to log this error
163
-					return true;
163
+					return TRUE;
164 164
 				}
165 165
 			}
166 166
 		}
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
 					break;
184 184
 			}
185 185
 		}
186
-		return true;
186
+		return TRUE;
187 187
 	}
188 188
 
189 189
 }
Please login to merge, or discard this patch.
application/config/config.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php defined('BASEPATH') OR exit('No direct script access allowed');
1
+<?php defined('BASEPATH') or exit('No direct script access allowed');
2 2
 
3 3
 /*
4 4
 |--------------------------------------------------------------------------
Please login to merge, or discard this patch.
application/config/production/migration.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php defined('BASEPATH') OR exit('No direct script access allowed');
1
+<?php defined('BASEPATH') or exit('No direct script access allowed');
2 2
 
3 3
 /*
4 4
 |--------------------------------------------------------------------------
Please login to merge, or discard this patch.
application/config/monolog.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php defined('BASEPATH') OR exit('No direct script access allowed');
1
+<?php defined('BASEPATH') or exit('No direct script access allowed');
2 2
 
3 3
 /*
4 4
  * CodeIgniter Monolog Plus
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 $config['hipchat_app_token'] = ''; //HipChat API Token
38 38
 $config['hipchat_app_room_id'] = ''; //The room that should be alerted of the message (Id or Name)
39 39
 $config['hipchat_app_notification_name'] = 'Monolog'; //Name used in the "from" field
40
-$config['hipchat_app_notify'] = false; //Trigger a notification in clients or not
40
+$config['hipchat_app_notify'] = FALSE; //Trigger a notification in clients or not
41 41
 $config['hipchat_app_loglevel'] = 'WARNING'; //The minimum logging level at which this handler will be triggered
42 42
 
43 43
 /* PAPER TRAIL OPTIONS */
Please login to merge, or discard this patch.
application/config/development/monolog.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php defined('BASEPATH') OR exit('No direct script access allowed');
1
+<?php defined('BASEPATH') or exit('No direct script access allowed');
2 2
 
3 3
 /* GENERAL OPTIONS */
4 4
 $config['handlers'] = array('file', 'papertrail', 'cli'); // valid handlers are ci_file | file | new_relic | hipchat | stderr | papertrail
Please login to merge, or discard this patch.