Passed
Pull Request — master (#610)
by Richard
14:27
created
htdocs/modules/debugbar/preloads/preload.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     {
95 95
         $path = dirname(__DIR__);
96 96
         XoopsLoad::addMap(array(
97
-            'debugbarlogger' => $path . '/class/debugbarlogger.php',
97
+            'debugbarlogger' => $path.'/class/debugbarlogger.php',
98 98
         ));
99 99
     }
100 100
 
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     {
110 110
         $logger = DebugbarLogger::getInstance();
111 111
 
112
-        $logger->enable();//until we get a db connection debug is enabled
112
+        $logger->enable(); //until we get a db connection debug is enabled
113 113
         //if (isset($_SERVER['REQUEST_TIME_FLOAT'])) {
114 114
         //    $logger->getDebugbar()['time']->addMeasure('Loading', $_SERVER['REQUEST_TIME_FLOAT'], microtime(true));
115 115
         //}
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
     {
255 255
         /* @var $block XoopsBlock */
256 256
         $block = $args[0];
257
-        $isCached= $args[1];
257
+        $isCached = $args[1];
258 258
         //Logger::getInstance()->addBlock($block->getVar('name'), $isCached, $block->getVar('bcachetime'));
259 259
         $context = array('channel'=>'Blocks', 'cached'=>$isCached, 'cachetime'=>$block->getVar('bcachetime'));
260 260
         DebugbarLogger::getInstance()->log(LogLevel::INFO, $block->getVar('name'), $context);
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
      */
405 405
     public static function eventDebugTimerStart($args)
406 406
     {
407
-        $args = (array) $args;
407
+        $args = (array)$args;
408 408
         DebugbarLogger::getInstance()->startTime($args[0], isset($args[1]) ? $args[1] : null);
409 409
     }
410 410
 
Please login to merge, or discard this patch.
htdocs/modules/debugbar/include/update.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 {
31 31
     $xoops = Xoops::getInstance();
32 32
     // copy font-awesome font files to assets directory
33
-    $dir = \XoopsBaseConfig::get('lib-path') . '/vendor/maximebf/debugbar/src/DebugBar/Resources/vendor/font-awesome/fonts/';
33
+    $dir = \XoopsBaseConfig::get('lib-path').'/vendor/maximebf/debugbar/src/DebugBar/Resources/vendor/font-awesome/fonts/';
34 34
     $pattern = '*';
35 35
     return $xoops->assets()->copyFileAssets($dir, $pattern, 'fonts');
36 36
 }
Please login to merge, or discard this patch.
htdocs/modules/debugbar/language/english/modinfo.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -15,18 +15,18 @@
 block discarded – undo
15 15
  * @author    Richard Griffith <[email protected]>
16 16
  */
17 17
 
18
-define('_MI_DEBUGBAR_NAME','DebugBar');
19
-define('_MI_DEBUGBAR_DSC','Error reporting and performance analysis');
18
+define('_MI_DEBUGBAR_NAME', 'DebugBar');
19
+define('_MI_DEBUGBAR_DSC', 'Error reporting and performance analysis');
20 20
 
21
-define('_MI_DEBUGBAR_ENABLE',"Display DebugBar");
22
-define('_MI_DEBUGBAR_SMARTYDEBUG',"Enable Smarty Debug");
21
+define('_MI_DEBUGBAR_ENABLE', "Display DebugBar");
22
+define('_MI_DEBUGBAR_SMARTYDEBUG', "Enable Smarty Debug");
23 23
 
24
-define('_MI_DEBUGBAR_UCONF_CAT_OPT','Options');
25
-define('_MI_DEBUGBAR_UCONF_CAT_OPT_DESC','DebugBar Options');
24
+define('_MI_DEBUGBAR_UCONF_CAT_OPT', 'Options');
25
+define('_MI_DEBUGBAR_UCONF_CAT_OPT_DESC', 'DebugBar Options');
26 26
 
27
-define('_MI_DEBUGBAR_UCONF_ENABLE_BAR','Display DebugBar');
28
-define('_MI_DEBUGBAR_UCONF_ENABLE_SMARTY','Enable Smarty Debug');
27
+define('_MI_DEBUGBAR_UCONF_ENABLE_BAR', 'Display DebugBar');
28
+define('_MI_DEBUGBAR_UCONF_ENABLE_SMARTY', 'Enable Smarty Debug');
29 29
 
30
-define('_MI_DEBUGBAR_ADMENU1','Home');
31
-define('_MI_DEBUGBAR_ADMENU2','About');
32
-define('_MI_DEBUGBAR_ADMENU3','Permissions');
30
+define('_MI_DEBUGBAR_ADMENU1', 'Home');
31
+define('_MI_DEBUGBAR_ADMENU2', 'About');
32
+define('_MI_DEBUGBAR_ADMENU3', 'Permissions');
Please login to merge, or discard this patch.
htdocs/modules/debugbar/language/english/admin.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
  * @author    Richard Griffith <[email protected]>
16 16
  */
17 17
 
18
-define('_MA_DEBUGBAR_PERMISSION_FORM','DebugBar Usage Permissions');
19
-define('_MA_DEBUGBAR_PERMISSION_GROUPS','Select groups that may use the DebugBar');
20
-define('_MA_DEBUGBAR_FORM_SUBMIT','Save');
21
-define('_MA_DEBUGBAR_FORM_PROCESSED','Permissions updated.');
18
+define('_MA_DEBUGBAR_PERMISSION_FORM', 'DebugBar Usage Permissions');
19
+define('_MA_DEBUGBAR_PERMISSION_GROUPS', 'Select groups that may use the DebugBar');
20
+define('_MA_DEBUGBAR_FORM_SUBMIT', 'Save');
21
+define('_MA_DEBUGBAR_FORM_PROCESSED', 'Permissions updated.');
Please login to merge, or discard this patch.
htdocs/modules/debugbar/class/debugbarlogger.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -177,12 +177,12 @@  discard block
 block discarded – undo
177 177
                 $excludes = array(
178 178
                     //'/vendor/font-awesome/', // font-awesome needs special process
179 179
                     //'/vendor/highlightjs/',  // highlightjs has some negative side effects
180
-                    '/vendor/jquery/',       // jquery is already available
180
+                    '/vendor/jquery/', // jquery is already available
181 181
                 );
182 182
 
183 183
                 $cssAssets = array_filter(
184 184
                     $cssAssets,
185
-                    function ($filename) use ($excludes) {
185
+                    function($filename) use ($excludes) {
186 186
                         foreach ($excludes as $exclude) {
187 187
                             if (false !== strpos($filename, $exclude)) {
188 188
                                 return false;
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
 
195 195
                 $jsAssets = array_filter(
196 196
                     $jsAssets,
197
-                    function ($filename) use ($excludes) {
197
+                    function($filename) use ($excludes) {
198 198
                         foreach ($excludes as $exclude) {
199 199
                             if (false !== strpos($filename, $exclude)) {
200 200
                                 return false;
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
     {
391 391
         if ($this->activated) {
392 392
             $this->debugbar->stackData();
393
-            $this->activated=false;
393
+            $this->activated = false;
394 394
             $this->renderingEnabled = false;
395 395
         }
396 396
     }
@@ -431,9 +431,9 @@  discard block
 block discarded – undo
431 431
         $pattern = '<!--<xo-logger-output>-->';
432 432
         $pos = strpos($output, $pattern);
433 433
         if ($pos !== false) {
434
-            return substr($output, 0, $pos) . $log . substr($output, $pos + strlen($pattern));
434
+            return substr($output, 0, $pos).$log.substr($output, $pos + strlen($pattern));
435 435
         } else {
436
-            return $output . $log;
436
+            return $output.$log;
437 437
         }
438 438
     }
439 439
 
@@ -452,15 +452,15 @@  discard block
 block discarded – undo
452 452
             }
453 453
             $this->addToTheme();
454 454
             $this->addExtra(_MD_DEBUGBAR_PHP_VERSION, PHP_VERSION);
455
-            $this->addExtra(_MD_DEBUGBAR_INCLUDED_FILES, (string) count(get_included_files()));
455
+            $this->addExtra(_MD_DEBUGBAR_INCLUDED_FILES, (string)count(get_included_files()));
456 456
             $conn = \Xoops::getInstance()->db()->getWrappedConnection();
457 457
             if ($conn instanceof \PDO) {
458 458
                 $this->addExtra(
459
-                    $conn->getAttribute(\PDO::ATTR_DRIVER_NAME) . ' version',
459
+                    $conn->getAttribute(\PDO::ATTR_DRIVER_NAME).' version',
460 460
                     $conn->getAttribute(\PDO::ATTR_SERVER_VERSION)
461 461
                 );
462 462
                 $this->addExtra(
463
-                    $conn->getAttribute(\PDO::ATTR_DRIVER_NAME) . ' stats',
463
+                    $conn->getAttribute(\PDO::ATTR_DRIVER_NAME).' stats',
464 464
                     $conn->getAttribute(\PDO::ATTR_SERVER_INFO)
465 465
                 );
466 466
             }
@@ -638,7 +638,7 @@  discard block
 block discarded – undo
638 638
             switch ($chan) {
639 639
                 case 'blocks':
640 640
                     $channel = 'Blocks';
641
-                    $msg = $message . ': ';
641
+                    $msg = $message.': ';
642 642
                     if ($context['cached']) {
643 643
                         $msg .= sprintf(_MD_DEBUGBAR_CACHED, (int)($context['cachetime']));
644 644
                     } else {
@@ -651,7 +651,7 @@  discard block
 block discarded – undo
651 651
                     break;
652 652
                 case 'extra':
653 653
                     $channel = 'Extra';
654
-                    $msg = $context['name'] . ': ' . $message;
654
+                    $msg = $context['name'].': '.$message;
655 655
                     break;
656 656
                 case 'queries':
657 657
                     $channel = 'Queries';
@@ -663,11 +663,11 @@  discard block
 block discarded – undo
663 663
                         //    \Xmf\Debug::dump($context);
664 664
                         //}
665 665
                         $msg .= ' -- Error number: '
666
-                            . (is_scalar($context['errno']) ?  $context['errno'] : '?')
666
+                            . (is_scalar($context['errno']) ? $context['errno'] : '?')
667 667
                             . ' Error message: '
668
-                            . (is_scalar($context['error']) ?  $context['error'] : '?');
668
+                            . (is_scalar($context['error']) ? $context['error'] : '?');
669 669
                     }
670
-                    $msg = $qt . $msg;
670
+                    $msg = $qt.$msg;
671 671
                     break;
672 672
             }
673 673
         }
Please login to merge, or discard this patch.
htdocs/modules/debugbar/class/plugin/userconfigs.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      */
59 59
     public function configs()
60 60
     {
61
-        $config[]=array(
61
+        $config[] = array(
62 62
             'name' => 'debugbar_enable',
63 63
             'title' => '_MI_DEBUGBAR_UCONF_ENABLE_BAR',
64 64
             'description' => '',
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
             'category' => 'cat_options'
70 70
         );
71 71
 
72
-        $config[]=array(
72
+        $config[] = array(
73 73
             'name' => 'debug_smarty_enable',
74 74
             'title' => '_MI_DEBUGBAR_UCONF_ENABLE_SMARTY',
75 75
             'description' => '',
Please login to merge, or discard this patch.
htdocs/modules/waiting/admin/plugins.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
  * @author          trabis <[email protected]>
22 22
  * @version         $Id$
23 23
  */
24
-include __DIR__ . '/header.php';
24
+include __DIR__.'/header.php';
25 25
 
26 26
 // Get main instance
27 27
 $xoops = \Xoops::getInstance();
Please login to merge, or discard this patch.
htdocs/modules/waiting/admin/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
  * @version         $Id$
21 21
  */
22 22
 
23
-include __DIR__ . '/header.php';
23
+include __DIR__.'/header.php';
24 24
 $xoops = Xoops::getInstance();
25 25
 
26 26
 // header
Please login to merge, or discard this patch.
htdocs/modules/waiting/admin/header.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,4 +20,4 @@
 block discarded – undo
20 20
  * @version         $Id$
21 21
  */
22 22
 
23
-require_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
23
+require_once dirname(dirname(dirname(__DIR__))).'/include/cp_header.php';
Please login to merge, or discard this patch.