Test Failed
Push — master ( e4b2c6...b343ab )
by Fran
02:49
created
src/base/types/traits/CurlTrait.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -66,10 +66,10 @@  discard block
 block discarded – undo
66 66
     protected $isMultipart = false;
67 67
 
68 68
     protected function closeConnection() {
69
-        if(null !== $this->con) {
70
-            if(is_resource($this->con)) {
69
+        if (null !== $this->con) {
70
+            if (is_resource($this->con)) {
71 71
                 curl_close($this->con);
72
-            } else {
72
+            }else {
73 73
                 $this->setCon(null);
74 74
             }
75 75
         }
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
         $this->url = NULL;
86 86
         $this->params = array();
87 87
         $this->headers = array();
88
-        Logger::log('Context service for ' . static::class . ' cleared!');
88
+        Logger::log('Context service for '.static::class.' cleared!');
89 89
         $this->closeConnection();
90 90
     }
91 91
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         $this->closeConnection();
95 95
         $this->params = [];
96 96
         $con = curl_init($this->url);
97
-        if(is_resource($con)) {
97
+        if (is_resource($con)) {
98 98
             $this->setCon();
99 99
         }
100 100
     }
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     public function setUrl($url, $cleanContext = true)
115 115
     {
116 116
         $this->url = $url;
117
-        if($cleanContext) {
117
+        if ($cleanContext) {
118 118
             $this->initialize();
119 119
         }
120 120
     }
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
      */
180 180
     public function setIsJson($isJson = true) {
181 181
         $this->isJson = $isJson;
182
-        if($isJson) {
182
+        if ($isJson) {
183 183
             $this->setIsMultipart(false);
184 184
         }
185 185
     }
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
      */
197 197
     public function setIsMultipart($isMultipart = true) {
198 198
         $this->isMultipart = $isMultipart;
199
-        if($isMultipart) {
199
+        if ($isMultipart) {
200 200
             $this->setIsJson(false);
201 201
         }
202 202
     }
Please login to merge, or discard this patch.
src/base/Logger.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@  discard block
 block discarded – undo
18 18
 
19 19
 
20 20
 if (!defined('LOG_DIR')) {
21
-    GeneratorHelper::createDir(BASE_DIR . DIRECTORY_SEPARATOR . 'logs');
22
-    define('LOG_DIR', BASE_DIR . DIRECTORY_SEPARATOR . 'logs');
21
+    GeneratorHelper::createDir(BASE_DIR.DIRECTORY_SEPARATOR.'logs');
22
+    define('LOG_DIR', BASE_DIR.DIRECTORY_SEPARATOR.'logs');
23 23
 }
24 24
 
25 25
 /**
@@ -57,10 +57,10 @@  discard block
 block discarded – undo
57 57
     {
58 58
         $args = func_get_args();
59 59
         list($logger, $debug, $path) = $this->setup($args);
60
-        $this->stream = fopen($path . DIRECTORY_SEPARATOR . date('Ymd') . '.log', 'a+');
60
+        $this->stream = fopen($path.DIRECTORY_SEPARATOR.date('Ymd').'.log', 'a+');
61 61
         if (is_resource($this->stream)) {
62 62
             $this->addPushLogger($logger, $debug);
63
-        } else {
63
+        }else {
64 64
             throw new ConfigException(t('Error creating logger'));
65 65
         }
66 66
         $this->logLevel = strtoupper(Config::getParam('log.level', 'NOTICE'));
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     private function createLoggerPath()
142 142
     {
143 143
         $logger = $this->setLoggerName();
144
-        $path = LOG_DIR . DIRECTORY_SEPARATOR . $logger . DIRECTORY_SEPARATOR . date('Y') . DIRECTORY_SEPARATOR . date('m');
144
+        $path = LOG_DIR.DIRECTORY_SEPARATOR.$logger.DIRECTORY_SEPARATOR.date('Y').DIRECTORY_SEPARATOR.date('m');
145 145
         GeneratorHelper::createDir($path);
146 146
         return $path;
147 147
     }
Please login to merge, or discard this patch.