Completed
Push — feature/add-cache-types-to-com... ( a89f1c )
by Steven
04:08
created
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");
@@ -28,8 +27,7 @@  discard block
 block discarded – undo
28 27
      * @param OutputInterface $output
29 28
      * @return ProcessCommand
30 29
      */
31
-    protected function execute(InputInterface $input, OutputInterface $output)
32
-    {
30
+    protected function execute(InputInterface $input, OutputInterface $output) {
33 31
         $output->writeln('<info>Enabling all cache types</info>');
34 32
 
35 33
         $cacheType = $input->getArgument('type');
@@ -42,8 +40,7 @@  discard block
 block discarded – undo
42 40
      * @param Config $config
43 41
      * @return bool|string
44 42
      */
45
-    protected function getCommand(Config $config, $cacheType)
46
-    {
43
+    protected function getCommand(Config $config, $cacheType) {
47 44
         $type = $config->type;
48 45
         switch ($type) {
49 46
             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");
@@ -28,8 +27,7 @@  discard block
 block discarded – undo
28 27
      * @param OutputInterface $output
29 28
      * @return ProcessCommand
30 29
      */
31
-    protected function execute(InputInterface $input, OutputInterface $output)
32
-    {
30
+    protected function execute(InputInterface $input, OutputInterface $output) {
33 31
         $output->writeln('<info>Flushing cache storage</info>');
34 32
 
35 33
         $cacheType = $input->getArgument('type');
@@ -42,8 +40,7 @@  discard block
 block discarded – undo
42 40
      * @param Config $config
43 41
      * @return bool|string
44 42
      */
45
-    protected function getCommand(Config $config, $cacheType)
46
-    {
43
+    protected function getCommand(Config $config, $cacheType) {
47 44
         $type = $config->type;
48 45
         switch ($type) {
49 46
             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");
@@ -28,8 +27,7 @@  discard block
 block discarded – undo
28 27
      * @param OutputInterface $output
29 28
      * @return ProcessCommand
30 29
      */
31
-    protected function execute(InputInterface $input, OutputInterface $output)
32
-    {
30
+    protected function execute(InputInterface $input, OutputInterface $output) {
33 31
         $output->writeln('<info>Cleaning all cache types</info>');
34 32
 
35 33
         $cacheType = $input->getArgument('type');
@@ -42,8 +40,7 @@  discard block
 block discarded – undo
42 40
      * @param Config $config
43 41
      * @return bool|string
44 42
      */
45
-    protected function getCommand(Config $config, $cacheType)
46
-    {
43
+    protected function getCommand(Config $config, $cacheType) {
47 44
         $type = $config->type;
48 45
         switch ($type) {
49 46
             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");
@@ -28,8 +27,7 @@  discard block
 block discarded – undo
28 27
      * @param OutputInterface $output
29 28
      * @return ProcessCommand
30 29
      */
31
-    protected function execute(InputInterface $input, OutputInterface $output)
32
-    {
30
+    protected function execute(InputInterface $input, OutputInterface $output) {
33 31
         $output->writeln('<info>Disabling all cache types</info>');
34 32
 
35 33
         $cacheType = $input->getArgument('type');
@@ -42,8 +40,7 @@  discard block
 block discarded – undo
42 40
      * @param Config $config
43 41
      * @return bool|string
44 42
      */
45
-    protected function getCommand(Config $config, $cacheType)
46
-    {
43
+    protected function getCommand(Config $config, $cacheType) {
47 44
         $type = $config->type;
48 45
         switch ($type) {
49 46
             case 'magento':
Please login to merge, or discard this patch.