Completed
Push — develop ( 1ec176...1495f3 )
by Tom
8s
created
src/N98/Magento/Command/Database/InfoCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
         $settings = array();
46 46
         foreach ($this->dbSettings as $key => $value) {
47
-            $settings[$key] = (string) $value;
47
+            $settings[$key] = (string)$value;
48 48
         }
49 49
 
50 50
         $pdoConnectionString = sprintf(
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             if (!isset($settings[$settingArgument])) {
76 76
                 throw new \InvalidArgumentException('Unknown setting: ' . $settingArgument);
77 77
             }
78
-            $output->writeln((string) $settings[$settingArgument]);
78
+            $output->writeln((string)$settings[$settingArgument]);
79 79
         } else {
80 80
             $this->getHelper('table')
81 81
                 ->setHeaders(array('Name', 'Value'))
Please login to merge, or discard this patch.
src/N98/Magento/Command/System/InfoCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 
110 110
     public function hasInfo()
111 111
     {
112
-        return ! empty($this->infos);
112
+        return !empty($this->infos);
113 113
     }
114 114
 
115 115
     public function getInfo($key = null)
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
             if (!isset($this->infos[$settingArgument])) {
153 153
                 throw new InvalidArgumentException('Unknown key: ' . $settingArgument);
154 154
             }
155
-            $output->writeln((string) $this->infos[$settingArgument]);
155
+            $output->writeln((string)$this->infos[$settingArgument]);
156 156
         } else {
157 157
             $this->getHelper('table')
158 158
                 ->setHeaders(array('name', 'value'))
Please login to merge, or discard this patch.
src/N98/Magento/Command/System/Check/Settings/BaseUrlCheckAbstract.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $errorMessage = 'Wrong hostname configured. <info>Hostname must contain a dot</info>';
33 33
 
34 34
         $host    = parse_url($baseUrl, PHP_URL_HOST);
35
-        $isValid = (bool) strstr($host, '.');
35
+        $isValid = (bool)strstr($host, '.');
36 36
         $result->setStatus($isValid);
37 37
         if ($isValid) {
38 38
             $result->setMessage(
Please login to merge, or discard this patch.
src/N98/Util/Console/Helper/DatabaseHelper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -56,11 +56,11 @@  discard block
 block discarded – undo
56 56
             throw new RuntimeException('Cannot find default connection config in app/etc/config.php');
57 57
         }
58 58
 
59
-        $this->dbSettings = (array) $config['db']['connection']['default'];
59
+        $this->dbSettings = (array)$config['db']['connection']['default'];
60 60
 
61 61
         $this->dbSettings['prefix'] = '';
62 62
         if (isset($config['db']['table_prefix'])) {
63
-            $this->dbSettings['prefix'] = (string) $config['db']['table_prefix'];
63
+            $this->dbSettings['prefix'] = (string)$config['db']['table_prefix'];
64 64
         }
65 65
 
66 66
         if (strpos($this->dbSettings['host'], ':') !== false) {
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
                         $definitions,
299 299
                         $resolved
300 300
                     );
301
-                    $resolvedList    = array_merge($resolvedList, $tables);
301
+                    $resolvedList = array_merge($resolvedList, $tables);
302 302
                 }
303 303
                 continue;
304 304
             }
Please login to merge, or discard this patch.
src/N98/Util/OperatingSystem.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public static function isLinux()
29 29
     {
30
-        return (bool) stristr(PHP_OS, 'linux');
30
+        return (bool)stristr(PHP_OS, 'linux');
31 31
     }
32 32
 
33 33
     /**
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public static function isNetware()
51 51
     {
52
-        return (bool) stristr(PHP_OS, 'netware');
52
+        return (bool)stristr(PHP_OS, 'netware');
53 53
     }
54 54
 
55 55
     /**
Please login to merge, or discard this patch.
tests/check-coverage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 
6 6
 // coverage-checker.php
7 7
 $inputFile  = $argv[1];
8
-$percentage = min(100, max(0, (int) $argv[2]));
8
+$percentage = min(100, max(0, (int)$argv[2]));
9 9
 
10 10
 if (!file_exists($inputFile)) {
11 11
     throw new InvalidArgumentException(
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
 $checkedElements = 0;
27 27
 
28 28
 foreach ($metrics as $metric) {
29
-    $totalElements   += (int) $metric['elements'];
30
-    $checkedElements += (int) $metric['coveredelements'];
29
+    $totalElements   += (int)$metric['elements'];
30
+    $checkedElements += (int)$metric['coveredelements'];
31 31
 }
32 32
 
33 33
 $coverage = ($checkedElements / $totalElements) * 100;
Please login to merge, or discard this patch.
tests/N98/Magento/Application/ConfigTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,10 +93,10 @@
 block discarded – undo
93 93
             $argv            = array('/path/to/command', 'list-help');
94 94
             $_SERVER['argv'] = $argv;
95 95
             $input           = new ArgvInput($argv, $definition);
96
-            $this->assertSame('list-help', (string) $input);
96
+            $this->assertSame('list-help', (string)$input);
97 97
             $actual = $config->checkConfigCommandAlias($input);
98 98
             $this->assertSame('list-help', $actual->getFirstArgument());
99
-            $this->assertSame('list-help --help', (string) $actual);
99
+            $this->assertSame('list-help --help', (string)$actual);
100 100
         }
101 101
         $_SERVER['argv'] = $saved;
102 102
 
Please login to merge, or discard this patch.
build/phar/tasks/PatchedPharPackageTask.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
         if (!is_null($this->baseDirectory)) {
316 316
             if (!$this->baseDirectory->exists()) {
317 317
                 throw new BuildException(
318
-                    "basedir '" . (string) $this->baseDirectory . "' does not exist!", $this->getLocation()
318
+                    "basedir '" . (string)$this->baseDirectory . "' does not exist!", $this->getLocation()
319 319
                 );
320 320
             }
321 321
         }
@@ -332,11 +332,11 @@  discard block
 block discarded – undo
332 332
             }
333 333
 
334 334
             if (!$this->key->exists()) {
335
-                throw new BuildException("key '" . (string) $this->key . "' does not exist!", $this->getLocation());
335
+                throw new BuildException("key '" . (string)$this->key . "' does not exist!", $this->getLocation());
336 336
             }
337 337
 
338 338
             if (!$this->key->canRead()) {
339
-                throw new BuildException("key '" . (string) $this->key . "' cannot be read!", $this->getLocation());
339
+                throw new BuildException("key '" . (string)$this->key . "' cannot be read!", $this->getLocation());
340 340
             }
341 341
         }
342 342
     }
Please login to merge, or discard this patch.