Completed
Push — master ( 5061b6...54eaec )
by Michael
12:20 queued 12:16
created
console/Commands/TestCommand.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,15 +11,15 @@
 block discarded – undo
11 11
 class TestCommand extends Command {
12 12
     protected function configure() {
13 13
         $this->setName("test")
14
-             ->setDescription("Sample description for our command named test")
15
-             ->setDefinition(array(
14
+                ->setDescription("Sample description for our command named test")
15
+                ->setDefinition(array(
16 16
                 new InputOption('flag', 'f', InputOption::VALUE_NONE, 'Raise a flag'),
17 17
                 new InputArgument('name', InputArgument::OPTIONAL, 'A name', 'uhhh, ... Clem'),
18 18
             ))
19
-             ->setHelp(<<<EOT
19
+                ->setHelp(<<<EOT
20 20
 The <info>test</info> command just says hello.
21 21
 EOT
22
-             );
22
+                );
23 23
     }
24 24
 
25 25
     protected function execute(InputInterface $input, OutputInterface $output) {
Please login to merge, or discard this patch.
console/Commands/UninstallModuleCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
                 $output->writeln(strip_tags($message));
48 48
             }
49 49
         }
50
-        if ($result===false) {
50
+        if ($result === false) {
51 51
             $output->writeln(sprintf('<error>Uninstall of %s failed!</error>', $module));
52 52
         } else {
53 53
             $output->writeln(sprintf('<info>Uninstall of %s completed.</info>', $module));
Please login to merge, or discard this patch.
console/Commands/InstallModuleCommand.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
             ))->setHelp(<<<EOT
25 25
 The <info>install-module</info> command installs a module.
26 26
 EOT
27
-             );
27
+                );
28 28
     }
29 29
 
30 30
     /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
                 $output->writeln(strip_tags($message));
63 63
             }
64 64
         }
65
-        if ($result===false) {
65
+        if ($result === false) {
66 66
             $output->writeln(sprintf('<error>Install of %s failed!</error>', $module));
67 67
         } else {
68 68
             $output->writeln(sprintf('<info>Install of %s completed.</info>', $module));
Please login to merge, or discard this patch.
console/Commands/SetConfigCommand.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
             ))->setHelp(<<<EOT
27 27
 The <info>set-config</info> command sets a configuration item to the specified value.
28 28
 EOT
29
-             );
29
+                );
30 30
     }
31 31
 
32 32
     /**
Please login to merge, or discard this patch.
console/Commands/Utf8mb4ModuleCommand.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 The <info>utf8mb4-module</info> command updates the tables that are owned by an installed module
24 24
 to use MySQL's <info>utf8mb4</info> character set, and <info>utf8mb4_unicode_ci</info> collation.
25 25
 EOT
26
-             );
26
+                );
27 27
     }
28 28
 
29 29
     protected function execute(InputInterface $input, OutputInterface $output)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         }
46 46
         $module->loadInfo($dirname, false);
47 47
         $modVersion = $module->modinfo;
48
-        $tableList =  isset($modVersion['tables']) ? $modVersion['tables'] : [];
48
+        $tableList = isset($modVersion['tables']) ? $modVersion['tables'] : [];
49 49
         //\Kint::dump($modVersion, $tableList);
50 50
         $sql = [];
51 51
 
Please login to merge, or discard this patch.
console/Commands/UpdateModuleCommand.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 This can be especially useful if the module configuration has changed, and
24 24
 it is interfering with normal online operation.
25 25
 EOT
26
-             );
26
+                );
27 27
     }
28 28
 
29 29
     protected function execute(InputInterface $input, OutputInterface $output)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
                 $output->writeln(strip_tags($message));
51 51
             }
52 52
         }
53
-        if ($result===false) {
53
+        if ($result === false) {
54 54
             $output->writeln(sprintf('<error>Update of %s failed!</error>', $module));
55 55
         } else {
56 56
             $output->writeln(sprintf('<info>Update of %s completed.</info>', $module));
Please login to merge, or discard this patch.
console/Commands/RenameSystemTablesCommand.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 The <info>rename-system-tables</info> command updates the XOOPS kernel
20 20
 database tables that are managed by the system module.
21 21
 EOT
22
-             );
22
+                );
23 23
     }
24 24
 
25 25
     protected function execute(InputInterface $input, OutputInterface $output)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 
52 52
         $migrate = new \Xmf\Database\Tables();
53 53
 
54
-        $renameTable = function ($existingName, $newName) use ($migrate) {
54
+        $renameTable = function($existingName, $newName) use ($migrate) {
55 55
             $status = $migrate->useTable($newName);
56 56
             if (!$status) {
57 57
                 $status = $migrate->useTable($existingName);
Please login to merge, or discard this patch.
console/Commands/CiBootstrapCommand.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 The <info>ci-bootstrap</info> command writes a basic mainfile for use in automation
25 25
 of the travis-ci continuous integration environment.
26 26
 EOT
27
-             );
27
+                );
28 28
     }
29 29
 
30 30
     /**
Please login to merge, or discard this patch.
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -64,29 +64,29 @@  discard block
 block discarded – undo
64 64
     protected function createConfigFile($configFile, $baseDir)
65 65
     {
66 66
         $url = 'http://localhost';
67
-        $webRoot = $baseDir . '/htdocs';
67
+        $webRoot = $baseDir.'/htdocs';
68 68
         $configs = array(
69 69
             'root-path' => $webRoot,
70
-            'lib-path' => $baseDir . '/xoops_lib',
71
-            'var-path' => $baseDir . '/xoops_data',
72
-            'trust-path' => $baseDir . '/xoops_lib',
70
+            'lib-path' => $baseDir.'/xoops_lib',
71
+            'var-path' => $baseDir.'/xoops_data',
72
+            'trust-path' => $baseDir.'/xoops_lib',
73 73
             'url' => $url,
74 74
             'prot' => 'http://',
75
-            'asset-path' => $webRoot . '/assets',
76
-            'asset-url' => $url . '/assets',
77
-            'themes-path' => $webRoot .'/themes',
78
-            'themes-url' => $url . '/themes',
79
-            'adminthemes-path' => $webRoot . '/modules/system/themes',
80
-            'adminthemes-url' => $url . '/modules/system/themes',
81
-            'media-path' => $webRoot . '/media',
82
-            'media-url' => $url . '/media',
83
-            'uploads-path' => $webRoot . '/uploads',
84
-            'uploads-url' => $url . '/uploads',
75
+            'asset-path' => $webRoot.'/assets',
76
+            'asset-url' => $url.'/assets',
77
+            'themes-path' => $webRoot.'/themes',
78
+            'themes-url' => $url.'/themes',
79
+            'adminthemes-path' => $webRoot.'/modules/system/themes',
80
+            'adminthemes-url' => $url.'/modules/system/themes',
81
+            'media-path' => $webRoot.'/media',
82
+            'media-url' => $url.'/media',
83
+            'uploads-path' => $webRoot.'/uploads',
84
+            'uploads-url' => $url.'/uploads',
85 85
             'cookie-domain' => '',
86 86
             'cookie-path' => '/',
87
-            'smarty-cache' => $baseDir . '/xoops_data/caches/smarty_cache',
88
-            'smarty-compile' => $baseDir . '/xoops_data/caches/smarty_compile',
89
-            'smarty-xoops-plugins' => $baseDir . '/xoops_lib/smarty/xoops_plugins',
87
+            'smarty-cache' => $baseDir.'/xoops_data/caches/smarty_cache',
88
+            'smarty-compile' => $baseDir.'/xoops_data/caches/smarty_compile',
89
+            'smarty-xoops-plugins' => $baseDir.'/xoops_lib/smarty/xoops_plugins',
90 90
             'db-type' => 'pdo_mysql',
91 91
             'db-charset' => 'utf8mb4',
92 92
             'db-prefix' => 'x300',
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
         }
145 145
 
146 146
         if (!class_exists('\XoopsBaseConfig', false)) {
147
-            include $baseDir . '/htdocs/class/XoopsBaseConfig.php';
147
+            include $baseDir.'/htdocs/class/XoopsBaseConfig.php';
148 148
             \XoopsBaseConfig::getInstance($configFile);
149 149
         }
150 150
         \Xoops\Core\Cache\CacheManager::createDefaultConfig();
Please login to merge, or discard this patch.
console/Commands/CiInstallCommand.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 appropriate mainfile.php to have been previously created, possibly using the
27 27
 <info>ci-bootstrap</info> command (only available if mainfile.php does not exist.)
28 28
 EOT
29
-             );
29
+                );
30 30
     }
31 31
 
32 32
     /**
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
                 $output->writeln(strip_tags($message));
62 62
             }
63 63
         }
64
-        if ($result===false) {
64
+        if ($result === false) {
65 65
             $output->writeln(sprintf('<error>Install of %s module failed!</error>', $module));
66 66
         } else {
67 67
             $output->writeln(sprintf('<info>Install of %s module completed.</info>', $module));
@@ -76,14 +76,14 @@  discard block
 block discarded – undo
76 76
             'system_user',
77 77
             array(
78 78
             //  'uid'             => 1,             // mediumint(8) unsigned NOT NULL auto_increment,
79
-                'uname'           => $adminname,    // varchar(25) NOT NULL default '',
80
-                'email'           => 'nobody@localhost',    // varchar(60) NOT NULL default '',
81
-                'user_regdate'    => $regdate,      // int(10) unsigned NOT NULL default '0',
82
-                'user_viewemail'  => 1,             // tinyint(1) unsigned NOT NULL default '0',
83
-                'pass'            => $adminpass,    // varchar(255) NOT NULL default '',
84
-                'rank'            => 7,             // smallint(5) unsigned NOT NULL default '0',
85
-                'level'           => 5,             // tinyint(3) unsigned NOT NULL default '1',
86
-                'last_login'      => $regdate,      // int(10) unsigned NOT NULL default '0',
79
+                'uname'           => $adminname, // varchar(25) NOT NULL default '',
80
+                'email'           => 'nobody@localhost', // varchar(60) NOT NULL default '',
81
+                'user_regdate'    => $regdate, // int(10) unsigned NOT NULL default '0',
82
+                'user_viewemail'  => 1, // tinyint(1) unsigned NOT NULL default '0',
83
+                'pass'            => $adminpass, // varchar(255) NOT NULL default '',
84
+                'rank'            => 7, // smallint(5) unsigned NOT NULL default '0',
85
+                'level'           => 5, // tinyint(3) unsigned NOT NULL default '1',
86
+                'last_login'      => $regdate, // int(10) unsigned NOT NULL default '0',
87 87
             )
88 88
         );
89 89
         $output->writeln(sprintf('<info>Inserted %d user.</info>', $result));
Please login to merge, or discard this patch.