Completed
Pull Request — epic/2.0.0 (#37)
by Steven
03:03
created
src/Magestead/Command/Index/ShowModeCommand.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -16,8 +16,7 @@  discard block
 block discarded – undo
16 16
     protected $_config;
17 17
     protected $_projectPath;
18 18
 
19
-    protected function configure()
20
-    {
19
+    protected function configure() {
21 20
         $this->_projectPath = getcwd();
22 21
         $this->setName("index:mode:show");
23 22
         $this->setDescription("Show index mode");
@@ -29,8 +28,7 @@  discard block
 block discarded – undo
29 28
      * @param OutputInterface $output
30 29
      * @return ProcessCommand
31 30
      */
32
-    protected function execute(InputInterface $input, OutputInterface $output)
33
-    {
31
+    protected function execute(InputInterface $input, OutputInterface $output) {
34 32
         $index = $input->getArgument('index');
35 33
 
36 34
         $command = $this->getCommand(new Config($output), $index);
@@ -48,8 +46,7 @@  discard block
 block discarded – undo
48 46
      * @param $index
49 47
      * @return bool|string
50 48
      */
51
-    protected function getCommand(Config $config, $index)
52
-    {
49
+    protected function getCommand(Config $config, $index) {
53 50
         $type = $config->type;
54 51
         switch ($type) {
55 52
             case 'magento2':
Please login to merge, or discard this patch.
src/Magestead/Command/Index/InfoCommand.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,8 +15,7 @@  discard block
 block discarded – undo
15 15
     protected $_config;
16 16
     protected $_projectPath;
17 17
 
18
-    protected function configure()
19
-    {
18
+    protected function configure() {
20 19
         $this->_projectPath = getcwd();
21 20
         $this->setName("index:info");
22 21
         $this->setDescription("Show available indexes");
@@ -27,8 +26,7 @@  discard block
 block discarded – undo
27 26
      * @param OutputInterface $output
28 27
      * @return ProcessCommand
29 28
      */
30
-    protected function execute(InputInterface $input, OutputInterface $output)
31
-    {
29
+    protected function execute(InputInterface $input, OutputInterface $output) {
32 30
         $output->writeln('<info>Getting index information</info>');
33 31
 
34 32
         $command = $this->getCommand(new Config($output));
@@ -40,8 +38,7 @@  discard block
 block discarded – undo
40 38
      * @param Config $config
41 39
      * @return bool|string
42 40
      */
43
-    protected function getCommand(Config $config)
44
-    {
41
+    protected function getCommand(Config $config) {
45 42
         $type = $config->type;
46 43
         switch ($type) {
47 44
             case 'magento':
Please login to merge, or discard this patch.
src/Magestead/Command/Index/ReindexCommand.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -16,8 +16,7 @@  discard block
 block discarded – undo
16 16
     protected $_config;
17 17
     protected $_projectPath;
18 18
 
19
-    protected function configure()
20
-    {
19
+    protected function configure() {
21 20
         $this->_projectPath = getcwd();
22 21
         $this->setName("index:reindex");
23 22
         $this->setDescription("Reindex data");
@@ -29,8 +28,7 @@  discard block
 block discarded – undo
29 28
      * @param OutputInterface $output
30 29
      * @return ProcessCommand
31 30
      */
32
-    protected function execute(InputInterface $input, OutputInterface $output)
33
-    {
31
+    protected function execute(InputInterface $input, OutputInterface $output) {
34 32
         $output->writeln('<info>Reindexing data</info>');
35 33
         $index = $input->getArgument('index');
36 34
 
@@ -44,8 +42,7 @@  discard block
 block discarded – undo
44 42
      * @param $index
45 43
      * @return bool|string
46 44
      */
47
-    protected function getCommand(Config $config, $index)
48
-    {
45
+    protected function getCommand(Config $config, $index) {
49 46
         $type = $config->type;
50 47
         switch ($type) {
51 48
             case 'magento':
Please login to merge, or discard this patch.
src/Magestead/Command/Cache/StatusCommand.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,8 +15,7 @@  discard block
 block discarded – undo
15 15
     protected $_config;
16 16
     protected $_projectPath;
17 17
 
18
-    protected function configure()
19
-    {
18
+    protected function configure() {
20 19
         $this->_projectPath = getcwd();
21 20
         $this->setName("cache:status");
22 21
         $this->setDescription("Checks cache status");
@@ -27,8 +26,7 @@  discard block
 block discarded – undo
27 26
      * @param OutputInterface $output
28 27
      * @return ProcessCommand
29 28
      */
30
-    protected function execute(InputInterface $input, OutputInterface $output)
31
-    {
29
+    protected function execute(InputInterface $input, OutputInterface $output) {
32 30
         $output->writeln('<info>Checking cache status</info>');
33 31
 
34 32
         $command = $this->getCommand(new Config($output));
@@ -40,8 +38,7 @@  discard block
 block discarded – undo
40 38
      * @param Config $config
41 39
      * @return bool|string
42 40
      */
43
-    protected function getCommand(Config $config)
44
-    {
41
+    protected function getCommand(Config $config) {
45 42
         $type = $config->type;
46 43
         switch ($type) {
47 44
             case 'magento':
Please login to merge, or discard this patch.
src/Magestead/Command/Cache/EnableCommand.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,8 +15,7 @@  discard block
 block discarded – undo
15 15
     protected $_config;
16 16
     protected $_projectPath;
17 17
 
18
-    protected function configure()
19
-    {
18
+    protected function configure() {
20 19
         $this->_projectPath = getcwd();
21 20
         $this->setName("cache:enable");
22 21
         $this->setDescription("Enable cache types");
@@ -27,8 +26,7 @@  discard block
 block discarded – undo
27 26
      * @param OutputInterface $output
28 27
      * @return ProcessCommand
29 28
      */
30
-    protected function execute(InputInterface $input, OutputInterface $output)
31
-    {
29
+    protected function execute(InputInterface $input, OutputInterface $output) {
32 30
         $output->writeln('<info>Enabling all cache types</info>');
33 31
 
34 32
         $command = $this->getCommand(new Config($output));
@@ -40,8 +38,7 @@  discard block
 block discarded – undo
40 38
      * @param Config $config
41 39
      * @return bool|string
42 40
      */
43
-    protected function getCommand(Config $config)
44
-    {
41
+    protected function getCommand(Config $config) {
45 42
         $type = $config->type;
46 43
         switch ($type) {
47 44
             case 'magento':
Please login to merge, or discard this patch.
src/Magestead/Command/Cache/FlushCommand.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,8 +15,7 @@  discard block
 block discarded – undo
15 15
     protected $_config;
16 16
     protected $_projectPath;
17 17
 
18
-    protected function configure()
19
-    {
18
+    protected function configure() {
20 19
         $this->_projectPath = getcwd();
21 20
         $this->setName("cache:flush");
22 21
         $this->setDescription("Flushes cache storage used by cache types");
@@ -27,8 +26,7 @@  discard block
 block discarded – undo
27 26
      * @param OutputInterface $output
28 27
      * @return ProcessCommand
29 28
      */
30
-    protected function execute(InputInterface $input, OutputInterface $output)
31
-    {
29
+    protected function execute(InputInterface $input, OutputInterface $output) {
32 30
         $output->writeln('<info>Flushing cache storage</info>');
33 31
 
34 32
         $command = $this->getCommand(new Config($output));
@@ -40,8 +38,7 @@  discard block
 block discarded – undo
40 38
      * @param Config $config
41 39
      * @return bool|string
42 40
      */
43
-    protected function getCommand(Config $config)
44
-    {
41
+    protected function getCommand(Config $config) {
45 42
         $type = $config->type;
46 43
         switch ($type) {
47 44
             case 'magento':
Please login to merge, or discard this patch.
src/Magestead/Command/Cache/CleanCommand.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,8 +15,7 @@  discard block
 block discarded – undo
15 15
     protected $_config;
16 16
     protected $_projectPath;
17 17
 
18
-    protected function configure()
19
-    {
18
+    protected function configure() {
20 19
         $this->_projectPath = getcwd();
21 20
         $this->setName("cache:clean");
22 21
         $this->setDescription("Cleans cache types");
@@ -27,8 +26,7 @@  discard block
 block discarded – undo
27 26
      * @param OutputInterface $output
28 27
      * @return ProcessCommand
29 28
      */
30
-    protected function execute(InputInterface $input, OutputInterface $output)
31
-    {
29
+    protected function execute(InputInterface $input, OutputInterface $output) {
32 30
         $output->writeln('<info>Cleaning all cache types</info>');
33 31
 
34 32
         $command = $this->getCommand(new Config($output));
@@ -40,8 +38,7 @@  discard block
 block discarded – undo
40 38
      * @param Config $config
41 39
      * @return bool|string
42 40
      */
43
-    protected function getCommand(Config $config)
44
-    {
41
+    protected function getCommand(Config $config) {
45 42
         $type = $config->type;
46 43
         switch ($type) {
47 44
             case 'magento':
Please login to merge, or discard this patch.
src/Magestead/Command/Cache/DisableCommand.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,8 +15,7 @@  discard block
 block discarded – undo
15 15
     protected $_config;
16 16
     protected $_projectPath;
17 17
 
18
-    protected function configure()
19
-    {
18
+    protected function configure() {
20 19
         $this->_projectPath = getcwd();
21 20
         $this->setName("cache:disable");
22 21
         $this->setDescription("Disable cache types");
@@ -27,8 +26,7 @@  discard block
 block discarded – undo
27 26
      * @param OutputInterface $output
28 27
      * @return ProcessCommand
29 28
      */
30
-    protected function execute(InputInterface $input, OutputInterface $output)
31
-    {
29
+    protected function execute(InputInterface $input, OutputInterface $output) {
32 30
         $output->writeln('<info>Disabling all cache types</info>');
33 31
 
34 32
         $command = $this->getCommand(new Config($output));
@@ -40,8 +38,7 @@  discard block
 block discarded – undo
40 38
      * @param Config $config
41 39
      * @return bool|string
42 40
      */
43
-    protected function getCommand(Config $config)
44
-    {
41
+    protected function getCommand(Config $config) {
45 42
         $type = $config->type;
46 43
         switch ($type) {
47 44
             case 'magento':
Please login to merge, or discard this patch.
src/Magestead/Command/Redis/FlushallCommand.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@  discard block
 block discarded – undo
14 14
     protected $_config;
15 15
     protected $_projectPath;
16 16
 
17
-    protected function configure()
18
-    {
17
+    protected function configure() {
19 18
         $this->_projectPath = getcwd();
20 19
         $this->setName("redis:flush-all");
21 20
         $this->setDescription("Flush redis storage");
@@ -26,8 +25,7 @@  discard block
 block discarded – undo
26 25
      * @param OutputInterface $output
27 26
      * @return ProcessCommand
28 27
      */
29
-    protected function execute(InputInterface $input, OutputInterface $output)
30
-    {
28
+    protected function execute(InputInterface $input, OutputInterface $output) {
31 29
         $output->writeln('<info>Flushing Redis Storage</info>');
32 30
 
33 31
         $command = "redis-cli flushall";
Please login to merge, or discard this patch.