Passed
Push — master ( eb5e0b...fbea1f )
by Fran
13:53
created
src/base/Logger.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@  discard block
 block discarded – undo
15 15
 
16 16
 
17 17
 if (!defined('LOG_DIR')) {
18
-    GeneratorHelper::createDir(BASE_DIR . DIRECTORY_SEPARATOR . 'logs');
19
-    define('LOG_DIR', BASE_DIR . DIRECTORY_SEPARATOR . 'logs');
18
+    GeneratorHelper::createDir(BASE_DIR.DIRECTORY_SEPARATOR.'logs');
19
+    define('LOG_DIR', BASE_DIR.DIRECTORY_SEPARATOR.'logs');
20 20
 }
21 21
 
22 22
 /**
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         $config = Config::getInstance();
51 51
         $args = func_get_args();
52 52
         list($logger, $debug, $path) = $this->setup($config, $args);
53
-        $this->stream = fopen($path . DIRECTORY_SEPARATOR . date('Ymd') . '.log', 'a+');
53
+        $this->stream = fopen($path.DIRECTORY_SEPARATOR.date('Ymd').'.log', 'a+');
54 54
         $this->addPushLogger($logger, $debug, $config);
55 55
         $this->log_level = Config::getParam('log.level', 'info');
56 56
     }
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
     private function createLoggerPath(Config $config)
192 192
     {
193 193
         $logger = $this->setLoggerName($config);
194
-        $path = LOG_DIR . DIRECTORY_SEPARATOR . $logger . DIRECTORY_SEPARATOR . date('Y') . DIRECTORY_SEPARATOR . date('m');
194
+        $path = LOG_DIR.DIRECTORY_SEPARATOR.$logger.DIRECTORY_SEPARATOR.date('Y').DIRECTORY_SEPARATOR.date('m');
195 195
         GeneratorHelper::createDir($path);
196 196
 
197 197
         return $path;
@@ -204,10 +204,10 @@  discard block
 block discarded – undo
204 204
      */
205 205
     public static function log($msg, $type = LOG_DEBUG, array $context = null)
206 206
     {
207
-        if(null === $context) {
207
+        if (null === $context) {
208 208
             $context = [];
209 209
         }
210
-        if(Config::getParam('profiling.enable')) {
210
+        if (Config::getParam('profiling.enable')) {
211 211
             Inspector::stats($msg);
212 212
         }
213 213
         switch ($type) {
Please login to merge, or discard this patch.