Completed
Pull Request — develop (#1712)
by Christian
01:04 queued 43s
created
tests/N98/Magento/Command/Customer/CreateCommandTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,8 +62,8 @@
 block discarded – undo
62 62
         // We mock the DialogHelper
63 63
         $dialog = $this->createMock('N98\Util\Console\Helper\ParameterHelper', ['askPassword']);
64 64
         $dialog->expects($this->at(0))
65
-               ->method('askPassword')
66
-               ->willReturn(true); // The user confirms
65
+                ->method('askPassword')
66
+                ->willReturn(true); // The user confirms
67 67
 
68 68
         // We override the standard helper with our mock
69 69
         $command->getHelperSet()->set($dialog, 'parameter');
Please login to merge, or discard this patch.
src/N98/Magento/Command/Installer/SubCommand/InstallMagento.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -297,7 +297,7 @@
 block discarded – undo
297 297
         $dbHost = $this->config->getString('db_host');
298 298
 
299 299
         if ($this->config->getInt('db_port') !== 3306) {
300
-            $dbHost .= ':' . (string)$this->config->getInt('db_port');
300
+            $dbHost .= ':' . (string) $this->config->getInt('db_port');
301 301
 
302 302
             return $dbHost;
303 303
         }
Please login to merge, or discard this patch.
src/N98/Magento/Command/Config/Env/EnvHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      * @param string $indent
14 14
      * @return string|null
15 15
      */
16
-    public static function exportVariable($var, $indent='')
16
+    public static function exportVariable($var, $indent = '')
17 17
     {
18 18
         switch (gettype($var)) {
19 19
             case 'string':
Please login to merge, or discard this patch.
src/N98/Magento/Command/Database/AddDefaultAuthorizationRoles.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         $this->detectDbSettings($output);
32 32
 
33 33
         $dbHelper = $this->getDatabaseHelper();
34
-        $connection =  $dbHelper->getConnection($output, true);
34
+        $connection = $dbHelper->getConnection($output, true);
35 35
 
36 36
         $roleTableName = $dbHelper->getTableName('authorization_role');
37 37
         $ruleTableName = $dbHelper->getTableName('authorization_rule');
Please login to merge, or discard this patch.
N98/Magento/Command/Developer/Module/DetectComposerDependenciesCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     protected function configure(): void
36 36
     {
37 37
         $this->setName('dev:module:detect-composer-dependencies')
38
-            ->addArgument('path', InputArgument::IS_ARRAY|InputArgument::REQUIRED, 'Path to modules')
38
+            ->addArgument('path', InputArgument::IS_ARRAY | InputArgument::REQUIRED, 'Path to modules')
39 39
             ->addOption('only-missing', null, InputOption::VALUE_NONE, 'Print only missing dependencies.')
40 40
             ->setDescription(
41 41
                 'This command will search for any soft and hard dependencies '
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
 
268 268
         foreach ($namespaces as $namespace) {
269 269
             if (array_key_exists($namespace, $projectPsr4Namespaces) && $namespace !== 'Magento\\Framework\\') {
270
-                $dependencyPackagePath = (string)$projectPsr4Namespaces[$namespace][0];
270
+                $dependencyPackagePath = (string) $projectPsr4Namespaces[$namespace][0];
271 271
                 $composerFilePath = preg_replace('/\/src$/', '', $dependencyPackagePath);
272 272
                 $composerFilePath = preg_replace('/\/Psr\/Log$/', '', $composerFilePath);
273 273
                 $dependencies = \array_merge($dependencies, $this->getComposerJsonVersionConstraint($composerFilePath));
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
         $moduleXmlLoaded = simplexml_load_string($moduleXmlFile->getContents());
307 307
         if (isset($moduleXmlLoaded->module->sequence)) {
308 308
             foreach ($moduleXmlLoaded->module->sequence->module as $module) {
309
-                $moduleName = (string)$module->attributes()->name;
309
+                $moduleName = (string) $module->attributes()->name;
310 310
                 if (array_key_exists($moduleName, $registeredModulesPaths)) {
311 311
                     $composerFilePath = preg_replace('/\/src$/', '', $registeredModulesPaths[$moduleName]);
312 312
                     $result = \array_merge($result, $this->getComposerJsonVersionConstraint($composerFilePath));
Please login to merge, or discard this patch.
build/phar/_cli_stub.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,4 +7,4 @@
 block discarded – undo
7 7
 $application->setPharMode(true);
8 8
 $application->run();
9 9
 
10
-__HALT_COMPILER();
10
+__HALT_COMPILER(); 
Please login to merge, or discard this patch.
src/N98/Magento/Command/Integration/CreateCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
             ->addOption('consumer-secret', '', InputOption::VALUE_REQUIRED, 'Consumer Secret (length 32 chars)')
72 72
             ->addOption('access-token', '', InputOption::VALUE_REQUIRED, 'Access-Token (length 32 chars)')
73 73
             ->addOption('access-token-secret', '', InputOption::VALUE_REQUIRED, 'Access-Token Secret (length 32 chars)')
74
-            ->addOption('resource', 'r', InputOption::VALUE_IS_ARRAY|InputOption::VALUE_REQUIRED, 'Defines a granted ACL resource', [])
74
+            ->addOption('resource', 'r', InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED, 'Defines a granted ACL resource', [])
75 75
             ->addOption(
76 76
                 'format',
77 77
                 null,
Please login to merge, or discard this patch.
src/N98/Magento/Command/Customer/DeleteCommand.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -226,7 +226,7 @@
 block discarded – undo
226 226
             if (count($filterAttributes) === 0) {
227 227
                 $output->writeln(
228 228
                     '<warning>No filter was specified. To delete all customer, ' .
229
-                             'add the --all option</warning>'
229
+                                'add the --all option</warning>'
230 230
                 );
231 231
 
232 232
                 return Command::FAILURE;
Please login to merge, or discard this patch.
src/N98/Magento/Command/Integration/ShowCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
             if (!isset($data[$settingArgument])) {
113 113
                 throw new \InvalidArgumentException('Unknown key: ' . $settingArgument);
114 114
             }
115
-            $output->writeln((string)$data[$settingArgument]);
115
+            $output->writeln((string) $data[$settingArgument]);
116 116
 
117 117
             return Command::SUCCESS;
118 118
         }
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
             if (!isset($data[$settingArgument])) {
130 130
                 throw new \InvalidArgumentException('Unknown key: ' . $settingArgument);
131 131
             }
132
-            $output->writeln((string)$this->infos[$settingArgument]);
132
+            $output->writeln((string) $this->infos[$settingArgument]);
133 133
         } else {
134 134
             $this->getHelper('table')
135 135
                 ->setHeaders(['name', 'value'])
Please login to merge, or discard this patch.