Completed
Push — develop ( 1ec176...1495f3 )
by Tom
8s
created
tests/N98/Util/AutoloadRestorerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
      */
28 28
     public function restoration()
29 29
     {
30
-        $callbackStub = function() {
30
+        $callbackStub = function () {
31 31
         };
32 32
 
33 33
         $this->assertTrue(spl_autoload_register($callbackStub));
Please login to merge, or discard this patch.
_ApplicationTest/Modules/test_dummy_module/src/TestModule/FooCommand.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -10,17 +10,17 @@
 block discarded – undo
10 10
 {
11 11
     protected function configure()
12 12
     {
13
-      $this
14
-          ->setName('testmodule:foo')
15
-          ->setDescription('Test command registered in a module')
16
-      ;
13
+        $this
14
+            ->setName('testmodule:foo')
15
+            ->setDescription('Test command registered in a module')
16
+        ;
17 17
     }
18 18
 
19
-   /**
20
-    * @param \Symfony\Component\Console\Input\InputInterface $input
21
-    * @param \Symfony\Component\Console\Output\OutputInterface $output
22
-    * @return int|void
23
-    */
19
+    /**
20
+     * @param \Symfony\Component\Console\Input\InputInterface $input
21
+     * @param \Symfony\Component\Console\Output\OutputInterface $output
22
+     * @return int|void
23
+     */
24 24
     protected function execute(InputInterface $input, OutputInterface $output)
25 25
     {
26 26
         $this->detectMagento($output);
Please login to merge, or discard this patch.
src/N98/Magento/Command/Cache/AbstractModifierCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,13 +49,13 @@  discard block
 block discarded – undo
49 49
             // If no argument is supplied, we are modifying all targets
50 50
             $types = array_keys($this->getCacheTypes(static::TARGET_IS_ENABLED));
51 51
         } else {
52
-            $types = (array) $types;
52
+            $types = (array)$types;
53 53
         }
54 54
 
55 55
         // Find out which types simply do not exist or are not affected by modifier
56 56
         $invalidTypes = array_diff($types, array_keys($this->getCacheTypes(!static::TARGET_IS_ENABLED)));
57 57
 
58
-        if (! empty($invalidTypes)) {
58
+        if (!empty($invalidTypes)) {
59 59
             $output->writeln(sprintf(static::INVALID_TYPES_MESSAGE, implode(', ', $invalidTypes)));
60 60
         }
61 61
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         }
69 69
 
70 70
         /** @var $cacheState \Magento\Framework\App\Cache\StateInterface */
71
-        $cacheState =  $this->getObjectManager()->get('\Magento\Framework\App\Cache\StateInterface');
71
+        $cacheState = $this->getObjectManager()->get('\Magento\Framework\App\Cache\StateInterface');
72 72
         $touchedTypes = [];
73 73
 
74 74
         try {
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
                     continue;
78 78
                 }
79 79
 
80
-                $cacheState->setEnabled($type, (bool) static::TARGET_IS_ENABLED);
80
+                $cacheState->setEnabled($type, (bool)static::TARGET_IS_ENABLED);
81 81
                 $touchedTypes[] = $type;
82 82
             }
83 83
 
Please login to merge, or discard this patch.
src/N98/Magento/Command/SubCommand/ConfigBag.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
         if (!is_null($value) && !is_bool($value)) {
16 16
             throw new \InvalidArgumentException('Type must be of type bool');
17 17
         }
18
-        $this->offsetSet($key, (bool) $value);
18
+        $this->offsetSet($key, (bool)$value);
19 19
 
20 20
         return $this;
21 21
     }
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         if (!is_null($value) && !is_int($value)) {
32 32
             throw new \InvalidArgumentException('Type must be of type int');
33 33
         }
34
-        $this->offsetSet($key, (int) $value);
34
+        $this->offsetSet($key, (int)$value);
35 35
 
36 36
         return $this;
37 37
     }
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         if (!is_null($value) && !is_string($value)) {
48 48
             throw new \InvalidArgumentException('Type must be of type string');
49 49
         }
50
-        $this->offsetSet($key, (string) $value);
50
+        $this->offsetSet($key, (string)$value);
51 51
 
52 52
         return $this;
53 53
     }
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         if (!is_null($value) && !is_float($value)) {
64 64
             throw new \InvalidArgumentException('Type must be of type float');
65 65
         }
66
-        $this->offsetSet($key, (float) $value);
66
+        $this->offsetSet($key, (float)$value);
67 67
 
68 68
         return $this;
69 69
     }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      */
107 107
     public function getBool($key)
108 108
     {
109
-        return (bool) $this->offsetGet($key);
109
+        return (bool)$this->offsetGet($key);
110 110
     }
111 111
 
112 112
     /**
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
      */
116 116
     public function getInt($key)
117 117
     {
118
-        return (int) $this->offsetGet($key);
118
+        return (int)$this->offsetGet($key);
119 119
     }
120 120
 
121 121
     /**
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      */
125 125
     public function getString($key)
126 126
     {
127
-        return (string) $this->offsetGet($key);
127
+        return (string)$this->offsetGet($key);
128 128
     }
129 129
 
130 130
     /**
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
      */
134 134
     public function getFloat($key)
135 135
     {
136
-        return (float) $this->offsetGet($key);
136
+        return (float)$this->offsetGet($key);
137 137
     }
138 138
 
139 139
     /**
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      */
143 143
     public function getArray($key)
144 144
     {
145
-        return (array) $this->offsetGet($key);
145
+        return (array)$this->offsetGet($key);
146 146
     }
147 147
 
148 148
     /**
Please login to merge, or discard this patch.
src/N98/Magento/Command/Database/Maintain/CheckTablesCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
148 148
                     )
149 149
                 )
150 150
             );
151
-            $tables         = $resolvedTables[0];
151
+            $tables = $resolvedTables[0];
152 152
         } else {
153 153
             $tables = $this->dbHelper->getTables();
154 154
         }
Please login to merge, or discard this patch.
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/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/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.