Test Failed
Push — develop ( a526c9...c737cc )
by nguereza
02:56
created
core/classes/database/DatabaseQueryRunner.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
             //reset instance
101 101
             $this->reset();
102 102
 
103
-            $this->logger->debug('Begin execution of SQL query [' . $this->query .']');
103
+            $this->logger->debug('Begin execution of SQL query [' . $this->query . ']');
104 104
            
105 105
             //for database query execution time
106 106
             $benchmarkMarkerKey = $this->getBenchmarkKey();
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
             if ((double) $responseTime >= 1.000000) {
118 118
                 $this->logger->warning(
119 119
                                         'High response time while processing database query [' . $this->query . '].' 
120
-                                        . ' The response time is [' .$responseTime . '] sec.'
120
+                                        . ' The response time is [' . $responseTime . '] sec.'
121 121
                                         );
122 122
             }
123 123
     		
Please login to merge, or discard this patch.
core/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
      */
138 138
     $TIMEZONE = get_config('server_timezone', 'UTC');
139 139
     if (!date_default_timezone_set($TIMEZONE)) {
140
-        show_error('Invalid server timezone configuration "' .$TIMEZONE. '"');
140
+        show_error('Invalid server timezone configuration "' . $TIMEZONE . '"');
141 141
     }
142 142
 
143 143
     /**
Please login to merge, or discard this patch.
core/classes/Module.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
          */
59 59
         public function add($name) {
60 60
             if (in_array($name, $this->list)) {
61
-               $this->logger->warning('The module [' .$name. '] already added skipping.');
61
+               $this->logger->warning('The module [' . $name . '] already added skipping.');
62 62
                return $this;
63 63
             }
64 64
             $this->list[] = $name;
Please login to merge, or discard this patch.
core/classes/Log.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
         protected function getLogDebugBacktraceInfo() {
318 318
             $dtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
319 319
             $i = 0;
320
-            while ($dtrace[$i]['file'] == __FILE__ ) {
320
+            while ($dtrace[$i]['file'] == __FILE__) {
321 321
                 $i++;
322 322
             } 
323 323
             $fileInfo = $dtrace[$i];
@@ -333,11 +333,11 @@  discard block
 block discarded – undo
333 333
             if (isset($fileInfo['line'])) {
334 334
                 $line = $fileInfo['line'];
335 335
             }
336
-            if (isset($dtrace[$i+1]['function'])) {
337
-                $function = $dtrace[$i+1]['function'];
336
+            if (isset($dtrace[$i + 1]['function'])) {
337
+                $function = $dtrace[$i + 1]['function'];
338 338
             }
339
-            if (isset($dtrace[$i+1]['class'])) {
340
-                $class = $dtrace[$i+1]['class'];
339
+            if (isset($dtrace[$i + 1]['class'])) {
340
+                $class = $dtrace[$i + 1]['class'];
341 341
             }
342 342
             
343 343
             return array(
Please login to merge, or discard this patch.
core/classes/database/DatabaseConnection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
          */
121 121
         public function connect() {
122 122
             try {
123
-                if(empty($this->config) && file_exists(CONFIG_PATH . 'database.php')) {
123
+                if (empty($this->config) && file_exists(CONFIG_PATH . 'database.php')) {
124 124
                     $db = array();
125 125
                     require CONFIG_PATH . 'database.php';
126 126
                     //Note need use the method to set config
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
                     PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_OBJ
131 131
                 );
132 132
                 $this->pdo = new PDO($this->getDsn(), $this->getUsername(), $this->getPassword(), $options);
133
-                if($this->getDriver() == 'mysql') {
133
+                if ($this->getDriver() == 'mysql') {
134 134
                     $this->pdo->exec("SET NAMES '" . $this->getCharset() . "' COLLATE '" . $this->getCollation() . "'");
135 135
                     $this->pdo->exec("SET CHARACTER SET '" . $this->getCharset() . "'");
136 136
                 }
Please login to merge, or discard this patch.
core/classes/database/DatabaseCache.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
         public function getCacheContent() {
158 158
             //set some attributes values
159 159
             $this->setPropertiesValues();
160
-            if (! $this->canUseCache()) {
160
+            if (!$this->canUseCache()) {
161 161
                 $this->logger->info('The cache is not enabled for this query or is not a SELECT query'); 
162 162
                 return null;
163 163
             }
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
         public function setCacheContent($result) {
179 179
             //set some attributes values
180 180
             $this->setPropertiesValues();
181
-            if (! $this->canUseCache()) {
181
+            if (!$this->canUseCache()) {
182 182
                 $this->logger->info('The cache is not enabled for this query or is not a SELECT query'); 
183 183
                 return null;
184 184
             }
Please login to merge, or discard this patch.
core/libraries/Upload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -443,7 +443,7 @@
 block discarded – undo
443 443
          *    @return    boolean
444 444
          */
445 445
         public function isAllowOverwriting() {
446
-            return $this->overwriteFile ;
446
+            return $this->overwriteFile;
447 447
         }
448 448
 
449 449
         /**
Please login to merge, or discard this patch.
core/libraries/Email.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      * SOFTWARE.
29 29
      */
30 30
 
31
-    class Email extends BaseClass{
31
+    class Email extends BaseClass {
32 32
         /**
33 33
          * @var int $wrap
34 34
          */
@@ -746,7 +746,7 @@  discard block
 block discarded – undo
746 746
             $message = wordwrap($this->message, $this->wrap);
747 747
             if ($this->hasAttachments()) {
748 748
                 $this->setAttachmentHeaders();
749
-                $message  = $this->assembleAttachmentBody();
749
+                $message = $this->assembleAttachmentBody();
750 750
             }
751 751
             return $message;
752 752
         }
@@ -826,7 +826,7 @@  discard block
 block discarded – undo
826 826
                                         $this->smtpConfig['connection_timeout']
827 827
                                     );
828 828
 
829
-            if (! is_resource($this->smtpSocket)) {
829
+            if (!is_resource($this->smtpSocket)) {
830 830
                 $this->error = $errorNumber . ': ' . $errorMessage;
831 831
                 return false;
832 832
             }
@@ -875,7 +875,7 @@  discard block
 block discarded – undo
875 875
                      */
876 876
                     if (is_resource($this->smtpSocket)) {
877 877
                         $method = STREAM_CRYPTO_METHOD_TLS_CLIENT;
878
-                        if(version_compare(PHP_VERSION, '5.6', '>=')) {
878
+                        if (version_compare(PHP_VERSION, '5.6', '>=')) {
879 879
                             $method = STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT | STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT | STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT;
880 880
                         }
881 881
                         stream_socket_enable_crypto($this->smtpSocket, true, $method);
@@ -983,7 +983,7 @@  discard block
 block discarded – undo
983 983
                 'To' => $to
984 984
             );
985 985
             foreach ($additionalHeaders as $key => $value) {
986
-                if (! isset($this->headers[$key])) {
986
+                if (!isset($this->headers[$key])) {
987 987
                     $this->headers[$key] = $value;
988 988
                 }
989 989
             }
Please login to merge, or discard this patch.
core/libraries/PDF.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
          * @return object the current instance
100 100
          */
101 101
         public function setFilename($filename) {
102
-            if(stripos($filename, '.pdf') === false) {
102
+            if (stripos($filename, '.pdf') === false) {
103 103
                 $filename .= '.pdf';     
104 104
             }
105 105
             $this->filename = $filename;
Please login to merge, or discard this patch.