Completed
Pull Request — develop (#813)
by Robbie
08:16 queued 03:39
created
src/N98/Magento/Command/Customer/CreateDummyCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
                 'format',
49 49
                 null,
50 50
                 InputOption::VALUE_OPTIONAL,
51
-                'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']'
51
+                'Output Format. One of ['.implode(',', RendererFactory::getFormats()).']'
52 52
             )
53 53
             ->setHelp($help)
54 54
         ;
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 
103 103
                     if ($outputPlain) {
104 104
                         $output->writeln(
105
-                            '<info>Customer <comment>' . $email . '</comment> with password <comment>' . $password .
105
+                            '<info>Customer <comment>'.$email.'</comment> with password <comment>'.$password.
106 106
                             '</comment> successfully created</info>'
107 107
                         );
108 108
                     } else {
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
                     }
113 113
                 } else {
114 114
                     if ($outputPlain) {
115
-                        $output->writeln('<error>Customer ' . $email . ' already exists</error>');
115
+                        $output->writeln('<error>Customer '.$email.' already exists</error>');
116 116
                     }
117 117
                 }
118 118
                 if ($i % 1000 == 0) {
Please login to merge, or discard this patch.
src/N98/Magento/Command/Customer/ListCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
                 'format',
20 20
                 null,
21 21
                 InputOption::VALUE_OPTIONAL,
22
-                'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']'
22
+                'Output Format. One of ['.implode(',', RendererFactory::getFormats()).']'
23 23
             )
24 24
             ->setDescription('Lists customers')
25 25
         ;
@@ -49,9 +49,9 @@  discard block
 block discarded – undo
49 49
             if ($input->getArgument('search')) {
50 50
                 $collection->addAttributeToFilter(
51 51
                     array(
52
-                        array('attribute' => 'email', 'like' => '%' . $input->getArgument('search') . '%'),
53
-                        array('attribute' => 'firstname', 'like' => '%' . $input->getArgument('search') . '%'),
54
-                        array('attribute' => 'lastname', 'like' => '%' . $input->getArgument('search') . '%'),
52
+                        array('attribute' => 'email', 'like' => '%'.$input->getArgument('search').'%'),
53
+                        array('attribute' => 'firstname', 'like' => '%'.$input->getArgument('search').'%'),
54
+                        array('attribute' => 'lastname', 'like' => '%'.$input->getArgument('search').'%'),
55 55
                     )
56 56
                 );
57 57
             }
Please login to merge, or discard this patch.
src/N98/Magento/Command/Customer/DeleteCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 
174 174
                 if ($this->shouldRemove()) {
175 175
                     $count = $this->batchDelete($customers);
176
-                    $this->output->writeln('<info>Successfully deleted ' . $count . ' customer/s</info>');
176
+                    $this->output->writeln('<info>Successfully deleted '.$count.' customer/s</info>');
177 177
                 } else {
178 178
                     $this->output->writeln('<error>Aborting delete</error>');
179 179
                 }
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
             );
239 239
             return true;
240 240
         } catch (Exception $e) {
241
-            $this->output->writeln('<error>' . $e->getMessage() . '</error>');
241
+            $this->output->writeln('<error>'.$e->getMessage().'</error>');
242 242
             return $e;
243 243
         }
244 244
     }
Please login to merge, or discard this patch.
src/N98/Magento/Command/AbstractMagentoStoreConfigCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -133,9 +133,9 @@
 block discarded – undo
133 133
         );
134 134
 
135 135
         $comment =
136
-            '<comment>' . $this->toggleComment . '</comment> '
137
-            . '<info>' . (!$isFalse ? $this->falseName : $this->trueName) . '</info>'
138
-            . ($runOnStoreView ? ' <comment>for store</comment> <info>' . $store->getCode() . '</info>' : '');
136
+            '<comment>'.$this->toggleComment.'</comment> '
137
+            . '<info>'.(!$isFalse ? $this->falseName : $this->trueName).'</info>'
138
+            . ($runOnStoreView ? ' <comment>for store</comment> <info>'.$store->getCode().'</info>' : '');
139 139
 
140 140
         $output->writeln($comment);
141 141
 
Please login to merge, or discard this patch.
src/N98/Magento/DbSettings.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -97,8 +97,8 @@  discard block
 block discarded – undo
97 97
             'password'    => null,
98 98
         );
99 99
 
100
-        $config           = ((array) $resources->default_setup->connection) + $config;
101
-        $config['prefix'] = (string) $resources->db->table_prefix;
100
+        $config           = ((array)$resources->default_setup->connection) + $config;
101
+        $config['prefix'] = (string)$resources->db->table_prefix;
102 102
 
103 103
         // known parameters: host, port, unix_socket, dbname, username, password, options, charset, persistent,
104 104
         //                   driver_options
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
         /* @see Varien_Db_Adapter_Pdo_Mysql::_connect */
110 110
         if (strpos($config['host'], '/') !== false) {
111
-            $config['unix_socket'] = (string) $config['host'];
111
+            $config['unix_socket'] = (string)$config['host'];
112 112
             $config['host'] = null;
113 113
             $config['port'] = null;
114 114
         } elseif (strpos($config['host'], ':') !== false) {
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
             $options[$name] = "{$name}={$value}";
155 155
         }
156 156
 
157
-        return $dsn . implode(';', $options);
157
+        return $dsn.implode(';', $options);
158 158
     }
159 159
 
160 160
     /**
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
         $connection->query("SET SQL_MODE=''");
182 182
 
183 183
         try {
184
-            $connection->query('USE ' . $this->quoteIdentifier($database));
184
+            $connection->query('USE '.$this->quoteIdentifier($database));
185 185
         } catch (PDOException $e) {
186 186
             throw new RuntimeException(
187 187
                 sprintf("Unable to use database '%s': %s %s", $database, get_class($e), $e->getMessage()), 0, $e
@@ -201,17 +201,17 @@  discard block
 block discarded – undo
201 201
         $segments = array();
202 202
 
203 203
         if (null !== $this->config['unix_socket']) {
204
-            $segments[] = '--socket=' . escapeshellarg($this->config['unix_socket']);
204
+            $segments[] = '--socket='.escapeshellarg($this->config['unix_socket']);
205 205
         } else {
206
-            $segments[] = '-h' . escapeshellarg($this->config['host']);
206
+            $segments[] = '-h'.escapeshellarg($this->config['host']);
207 207
         }
208 208
 
209
-        $segments[] = '-u' . escapeshellarg($this->config['username']);
209
+        $segments[] = '-u'.escapeshellarg($this->config['username']);
210 210
         if (null !== $this->config['port']) {
211
-            $segments[] = '-P' . escapeshellarg($this->config['port']);
211
+            $segments[] = '-P'.escapeshellarg($this->config['port']);
212 212
         }
213 213
         if (strlen($this->config['password'])) {
214
-            $segments[] = '-p' . escapeshellarg($this->config['password']);
214
+            $segments[] = '-p'.escapeshellarg($this->config['password']);
215 215
         }
216 216
         $segments[] = escapeshellarg($this->config['dbname']);
217 217
 
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
             );
241 241
         }
242 242
 
243
-        return $quote . strtr($identifier, array($quote => $quote . $quote)) . $quote;
243
+        return $quote.strtr($identifier, array($quote => $quote.$quote)).$quote;
244 244
     }
245 245
 
246 246
     /**
Please login to merge, or discard this patch.
src/N98/View/PhpView.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,6 +57,6 @@
 block discarded – undo
57 57
      */
58 58
     protected function xmlProlog()
59 59
     {
60
-        return '<?xml version="1.0"?>' . "\n";
60
+        return '<?xml version="1.0"?>'."\n";
61 61
     }
62 62
 }
Please login to merge, or discard this patch.
src/N98/Util/Validator/FakeMetadataFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,11 +17,11 @@
 block discarded – undo
17 17
         }
18 18
 
19 19
         if (!is_string($class)) {
20
-            throw new NoSuchMetadataException('No metadata for type ' . gettype($class));
20
+            throw new NoSuchMetadataException('No metadata for type '.gettype($class));
21 21
         }
22 22
 
23 23
         if (!isset($this->metadatas[$class])) {
24
-            throw new NoSuchMetadataException('No metadata for "' . $class . '"');
24
+            throw new NoSuchMetadataException('No metadata for "'.$class.'"');
25 25
         }
26 26
 
27 27
         return $this->metadatas[$class];
Please login to merge, or discard this patch.
src/N98/Util/OperatingSystem.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      */
27 27
     public static function isLinux()
28 28
     {
29
-        return (bool) stristr(PHP_OS, 'linux');
29
+        return (bool)stristr(PHP_OS, 'linux');
30 30
     }
31 31
 
32 32
     /**
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public static function isNetware()
50 50
     {
51
-        return (bool) stristr(PHP_OS, 'netware');
51
+        return (bool)stristr(PHP_OS, 'netware');
52 52
     }
53 53
 
54 54
     /**
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
         $out = null;
76 76
         $return = null;
77
-        @exec('which ' . $program, $out, $return);
77
+        @exec('which '.$program, $out, $return);
78 78
 
79 79
         return $return === 0;
80 80
     }
Please login to merge, or discard this patch.
src/N98/Util/Unicode/Charset.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 
27 27
         $str = '';
28 28
         foreach ($codes as $code) {
29
-            $str .= html_entity_decode('&#' . $code . ';', ENT_NOQUOTES, 'UTF-8');
29
+            $str .= html_entity_decode('&#'.$code.';', ENT_NOQUOTES, 'UTF-8');
30 30
         }
31 31
 
32 32
         return $str;
Please login to merge, or discard this patch.