Completed
Push — analysis-zGPgQ2 ( 3b9df4 )
by Steven
02:50
created
src/Magestead/Command/NewCommand.php 3 patches
Braces   +8 added lines, -16 removed lines patch added patch discarded remove patch
@@ -22,8 +22,7 @@  discard block
 block discarded – undo
22 22
     protected $_projectPath;
23 23
     protected $_msConfig;
24 24
 
25
-    protected function configure()
26
-    {
25
+    protected function configure() {
27 26
         $this->_basePath    = dirname( __FILE__ ) . '/../../../';
28 27
         $this->_projectPath = getcwd();
29 28
 
@@ -39,8 +38,7 @@  discard block
 block discarded – undo
39 38
      * @return \Magestead\Installers\Magento2Project|\Magestead\Installers\MagentoProject
40 39
      * @throws ExistingProjectException
41 40
      */
42
-    protected function execute(InputInterface $input, OutputInterface $output)
43
-    {
41
+    protected function execute(InputInterface $input, OutputInterface $output) {
44 42
         $project = $this->setProject($input);
45 43
 
46 44
         $helper  = $this->getHelper('question');
@@ -59,8 +57,7 @@  discard block
 block discarded – undo
59 57
      * @param $target
60 58
      * @param OutputInterface $output
61 59
      */
62
-    protected function copyConfigFiles($source, $target, OutputInterface $output)
63
-    {
60
+    protected function copyConfigFiles($source, $target, OutputInterface $output) {
64 61
         try {
65 62
             $progress = new ProgressBar($output, 3720);
66 63
             $progress->start();
@@ -87,8 +84,7 @@  discard block
 block discarded – undo
87 84
      * @param array $options
88 85
      * @param OutputInterface $output
89 86
      */
90
-    protected function configureProject(array $options, OutputInterface $output)
91
-    {
87
+    protected function configureProject(array $options, OutputInterface $output) {
92 88
         $msConfig = $this->getConfigFile($output);
93 89
 
94 90
         $app = ($options['app'] == 'magento2') ? 'magento2' : 'magento';
@@ -116,8 +112,7 @@  discard block
 block discarded – undo
116 112
      * @param OutputInterface $output
117 113
      * @return mixed
118 114
      */
119
-    protected function getConfigFile(OutputInterface $output)
120
-    {
115
+    protected function getConfigFile(OutputInterface $output) {
121 116
         $yaml = new Parser();
122 117
         try {
123 118
             return $yaml->parse(file_get_contents($this->_projectPath . '/magestead.yaml'));
@@ -131,8 +126,7 @@  discard block
 block discarded – undo
131 126
      * @param array $config
132 127
      * @param OutputInterface $output
133 128
      */
134
-    protected function saveConfigFile(array $config, OutputInterface $output)
135
-    {
129
+    protected function saveConfigFile(array $config, OutputInterface $output) {
136 130
         $dumper = new Dumper();
137 131
         $yaml   = $dumper->dump($config, 6);
138 132
 
@@ -147,8 +141,7 @@  discard block
 block discarded – undo
147 141
      * @param OutputInterface $output
148 142
      * @param $options
149 143
      */
150
-    protected function setupProject(OutputInterface $output, $options)
151
-    {
144
+    protected function setupProject(OutputInterface $output, $options) {
152 145
         $output->writeln('<info>Setting up project structure</info>');
153 146
         $provisionFolder = $this->_basePath . "provision";
154 147
         $this->copyConfigFiles($provisionFolder, $this->_projectPath, $output);
@@ -160,8 +153,7 @@  discard block
 block discarded – undo
160 153
      * @return mixed
161 154
      * @throws ExistingProjectException
162 155
      */
163
-    protected function setProject(InputInterface $input)
164
-    {
156
+    protected function setProject(InputInterface $input) {
165 157
         $project = $input->getArgument('project');
166 158
         $this->_projectPath = $this->_projectPath . '/' . $project;
167 159
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@
 block discarded – undo
170 170
             throw new ExistingProjectException('Target project directory already exists');
171 171
         }
172 172
 
173
-        mkdir($this->_projectPath, 0777, true);
173
+        mkdir($this->_projectPath, 0777, TRUE);
174 174
         return $project;
175 175
     }
176 176
 }
Please login to merge, or discard this patch.
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
 
27 27
     protected function configure()
28 28
     {
29
-        $this->_basePath = dirname(__FILE__).'/../../../';
30
-        $this->_projectPath = getcwd();
29
+        $this->_basePath=dirname(__FILE__).'/../../../';
30
+        $this->_projectPath=getcwd();
31 31
 
32 32
         $this->setName('new');
33 33
         $this->setDescription('Initialise new Magestead project into current working directory');
@@ -44,10 +44,10 @@  discard block
 block discarded – undo
44 44
      */
45 45
     protected function execute(InputInterface $input, OutputInterface $output)
46 46
     {
47
-        $project = $this->setProject($input);
47
+        $project=$this->setProject($input);
48 48
 
49
-        $helper = $this->getHelper('question');
50
-        $options = new Options($helper, $input, $output, $project);
49
+        $helper=$this->getHelper('question');
50
+        $options=new Options($helper, $input, $output, $project);
51 51
 
52 52
         $this->setupProject($output, $options);
53 53
 
@@ -65,10 +65,10 @@  discard block
 block discarded – undo
65 65
     protected function copyConfigFiles($source, $target, OutputInterface $output)
66 66
     {
67 67
         try {
68
-            $progress = new ProgressBar($output, 3720);
68
+            $progress=new ProgressBar($output, 3720);
69 69
             $progress->start();
70 70
             foreach (
71
-                $iterator = new \RecursiveIteratorIterator(
71
+                $iterator=new \RecursiveIteratorIterator(
72 72
                     new \RecursiveDirectoryIterator($source, \RecursiveDirectoryIterator::SKIP_DOTS),
73 73
                     \RecursiveIteratorIterator::SELF_FIRST) as $item
74 74
             ) {
@@ -92,24 +92,24 @@  discard block
 block discarded – undo
92 92
      */
93 93
     protected function configureProject(array $options, OutputInterface $output)
94 94
     {
95
-        $msConfig = $this->getConfigFile($output);
95
+        $msConfig=$this->getConfigFile($output);
96 96
 
97
-        $app = ($options['app'] == 'magento2') ? 'magento2' : 'magento';
98
-        $hostname = 'magestead-'.$options['base_url'];
97
+        $app=($options['app'] == 'magento2') ? 'magento2' : 'magento';
98
+        $hostname='magestead-'.$options['base_url'];
99 99
 
100
-        $msConfig['vagrantfile']['vm']['box'] = $options['box'];
101
-        $msConfig['vagrantfile']['vm']['box_url'] = $options['box'];
102
-        $msConfig['vagrantfile']['vm']['hostname'] = $hostname;
103
-        $msConfig['vagrantfile']['vm']['memory'] = $options['memory_limit'];
104
-        $msConfig['vagrantfile']['vm']['network']['private_network'] = $options['ip_address'];
105
-        $msConfig['magestead']['apps']['mba_12345']['type'] = $app;
106
-        $msConfig['magestead']['apps']['mba_12345']['locale'] = $options['locale'];
107
-        $msConfig['magestead']['apps']['mba_12345']['default_currency'] = $options['default_currency'];
108
-        $msConfig['magestead']['apps']['mba_12345']['base_url'] = $options['base_url'];
109
-        $msConfig['magestead']['os'] = $options['os'];
110
-        $msConfig['magestead']['server'] = $options['server'];
100
+        $msConfig['vagrantfile']['vm']['box']=$options['box'];
101
+        $msConfig['vagrantfile']['vm']['box_url']=$options['box'];
102
+        $msConfig['vagrantfile']['vm']['hostname']=$hostname;
103
+        $msConfig['vagrantfile']['vm']['memory']=$options['memory_limit'];
104
+        $msConfig['vagrantfile']['vm']['network']['private_network']=$options['ip_address'];
105
+        $msConfig['magestead']['apps']['mba_12345']['type']=$app;
106
+        $msConfig['magestead']['apps']['mba_12345']['locale']=$options['locale'];
107
+        $msConfig['magestead']['apps']['mba_12345']['default_currency']=$options['default_currency'];
108
+        $msConfig['magestead']['apps']['mba_12345']['base_url']=$options['base_url'];
109
+        $msConfig['magestead']['os']=$options['os'];
110
+        $msConfig['magestead']['server']=$options['server'];
111 111
 
112
-        $this->_msConfig = $msConfig;
112
+        $this->_msConfig=$msConfig;
113 113
 
114 114
         $this->saveConfigFile($msConfig, $output);
115 115
     }
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      */
122 122
     protected function getConfigFile(OutputInterface $output)
123 123
     {
124
-        $yaml = new Parser();
124
+        $yaml=new Parser();
125 125
         try {
126 126
             return $yaml->parse(file_get_contents($this->_projectPath.'/magestead.yaml'));
127 127
         } catch (ParseException $e) {
@@ -136,8 +136,8 @@  discard block
 block discarded – undo
136 136
      */
137 137
     protected function saveConfigFile(array $config, OutputInterface $output)
138 138
     {
139
-        $dumper = new Dumper();
140
-        $yaml = $dumper->dump($config, 6);
139
+        $dumper=new Dumper();
140
+        $yaml=$dumper->dump($config, 6);
141 141
 
142 142
         try {
143 143
             file_put_contents($this->_projectPath.'/magestead.yaml', $yaml);
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
     protected function setupProject(OutputInterface $output, $options)
154 154
     {
155 155
         $output->writeln('<info>Setting up project structure</info>');
156
-        $provisionFolder = $this->_basePath.'provision';
156
+        $provisionFolder=$this->_basePath.'provision';
157 157
         $this->copyConfigFiles($provisionFolder, $this->_projectPath, $output);
158 158
         $this->configureProject($options->getAllOptions(), $output);
159 159
 
@@ -169,8 +169,8 @@  discard block
 block discarded – undo
169 169
      */
170 170
     protected function setProject(InputInterface $input)
171 171
     {
172
-        $project = $input->getArgument('project');
173
-        $this->_projectPath = $this->_projectPath.'/'.$project;
172
+        $project=$input->getArgument('project');
173
+        $this->_projectPath=$this->_projectPath.'/'.$project;
174 174
 
175 175
         if (is_dir($this->_projectPath)) {
176 176
             throw new ExistingProjectException('Target project directory already exists');
Please login to merge, or discard this patch.
src/Magestead/Service/UsageApi.php 2 patches
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -21,8 +21,7 @@  discard block
 block discarded – undo
21 21
      * UsageApi constructor.
22 22
      * @param $data
23 23
      */
24
-    public function __construct($data)
25
-    {
24
+    public function __construct($data) {
26 25
         $this->_params['os_type']               = urlencode($data['os']);
27 26
         $this->_params['server_type']           = urlencode($data['server']);
28 27
         $this->_params['php_version']           = urlencode($data['phpver']);
@@ -38,8 +37,7 @@  discard block
 block discarded – undo
38 37
     /**
39 38
      *
40 39
      */
41
-    public function send()
42
-    {
40
+    public function send() {
43 41
         $fields_string = $this->getFieldsString();
44 42
 
45 43
         $ch = curl_init();
@@ -58,8 +56,7 @@  discard block
 block discarded – undo
58 56
     /**
59 57
      * @return string
60 58
      */
61
-    protected function getFieldsString()
62
-    {
59
+    protected function getFieldsString() {
63 60
         $fields_string = '';
64 61
         foreach ($this->_params as $key => $value) {
65 62
             $fields_string .= $key . '=' . $value . '&';
Please login to merge, or discard this patch.
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -10,13 +10,13 @@  discard block
 block discarded – undo
10 10
     /**
11 11
      * @var string
12 12
      */
13
-    protected $_apiUrl = 'http://api.magestead.com/v1/usage';
13
+    protected $_apiUrl='http://api.magestead.com/v1/usage';
14 14
 //    protected $_apiUrl = "http://magestead-api.app/v1/usage";
15 15
 
16 16
     /**
17 17
      * @var array
18 18
      */
19
-    protected $_params = [];
19
+    protected $_params=[];
20 20
 
21 21
     /**
22 22
      * UsageApi constructor.
@@ -25,30 +25,30 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function __construct($data)
27 27
     {
28
-        $this->_params['os_type'] = urlencode($data['os']);
29
-        $this->_params['server_type'] = urlencode($data['server']);
30
-        $this->_params['php_version'] = urlencode($data['phpver']);
31
-        $this->_params['application_version'] = urlencode($data['app']);
32
-        $this->_params['vm_memory_limit'] = urlencode($data['memory_limit']);
33
-        $this->_params['vm_cpu_count'] = urlencode($data['cpus']);
34
-        $this->_params['ip_address'] = urlencode($data['ip_address']);
35
-        $this->_params['box'] = urlencode($data['box']);
36
-        $this->_params['locale'] = urlencode($data['locale']);
37
-        $this->_params['default_currency'] = urlencode($data['default_currency']);
28
+        $this->_params['os_type']=urlencode($data['os']);
29
+        $this->_params['server_type']=urlencode($data['server']);
30
+        $this->_params['php_version']=urlencode($data['phpver']);
31
+        $this->_params['application_version']=urlencode($data['app']);
32
+        $this->_params['vm_memory_limit']=urlencode($data['memory_limit']);
33
+        $this->_params['vm_cpu_count']=urlencode($data['cpus']);
34
+        $this->_params['ip_address']=urlencode($data['ip_address']);
35
+        $this->_params['box']=urlencode($data['box']);
36
+        $this->_params['locale']=urlencode($data['locale']);
37
+        $this->_params['default_currency']=urlencode($data['default_currency']);
38 38
     }
39 39
 
40 40
     public function send()
41 41
     {
42
-        $fields_string = $this->getFieldsString();
42
+        $fields_string=$this->getFieldsString();
43 43
 
44
-        $ch = curl_init();
44
+        $ch=curl_init();
45 45
 
46 46
         curl_setopt($ch, CURLOPT_URL, $this->_apiUrl);
47 47
         curl_setopt($ch, CURLOPT_POST, count($this->_params));
48 48
         curl_setopt($ch, CURLOPT_POSTFIELDS, $fields_string);
49 49
         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
50 50
 
51
-        $result = curl_exec($ch);
51
+        $result=curl_exec($ch);
52 52
 
53 53
         curl_close($ch);
54 54
     }
@@ -58,9 +58,9 @@  discard block
 block discarded – undo
58 58
      */
59 59
     protected function getFieldsString()
60 60
     {
61
-        $fields_string = '';
61
+        $fields_string='';
62 62
         foreach ($this->_params as $key => $value) {
63
-            $fields_string .= $key.'='.$value.'&';
63
+            $fields_string.=$key.'='.$value.'&';
64 64
         }
65 65
         rtrim($fields_string, '&');
66 66
 
Please login to merge, or discard this patch.
src/Magestead/Command/Log/ViewCommand.php 2 patches
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -19,8 +19,7 @@  discard block
 block discarded – undo
19 19
     /**
20 20
      * Configure the view command
21 21
      */
22
-    protected function configure()
23
-    {
22
+    protected function configure() {
24 23
         $this->_projectPath = getcwd();
25 24
         $this->setName("log:view");
26 25
         $this->setDescription("View a specific server log");
@@ -32,8 +31,7 @@  discard block
 block discarded – undo
32 31
      * @param OutputInterface $output
33 32
      * @return ProcessCommand
34 33
      */
35
-    protected function execute(InputInterface $input, OutputInterface $output)
36
-    {
34
+    protected function execute(InputInterface $input, OutputInterface $output) {
37 35
         $log = $input->getArgument('log');
38 36
 
39 37
         $output->writeln('<info>Viewing '. ucwords($log) . ' Log</info>');
@@ -51,8 +49,7 @@  discard block
 block discarded – undo
51 49
      * @param $log
52 50
      * @return string
53 51
      */
54
-    private function getCommand(Config $config, $log)
55
-    {
52
+    private function getCommand(Config $config, $log) {
56 53
         $server = $config->_config['magestead']['server'];
57 54
         $os = $config->_config['magestead']['os'];
58 55
 
@@ -67,8 +64,7 @@  discard block
 block discarded – undo
67 64
      * @param $os
68 65
      * @return string
69 66
      */
70
-    private function getLogLocation($server, $os)
71
-    {
67
+    private function getLogLocation($server, $os) {
72 68
         $location = 'nginx';
73 69
         if ($server != 'nginx') {
74 70
             $location = ($os == 'ubuntu14') ? 'apache2' : 'httpd';
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      */
23 23
     protected function configure()
24 24
     {
25
-        $this->_projectPath = getcwd();
25
+        $this->_projectPath=getcwd();
26 26
         $this->setName('log:view');
27 27
         $this->setDescription('View a specific server log');
28 28
         $this->addArgument('log', InputArgument::REQUIRED, 'access or error');
@@ -36,15 +36,15 @@  discard block
 block discarded – undo
36 36
      */
37 37
     protected function execute(InputInterface $input, OutputInterface $output)
38 38
     {
39
-        $log = $input->getArgument('log');
39
+        $log=$input->getArgument('log');
40 40
 
41 41
         $output->writeln('<info>Viewing '.ucwords($log).' Log</info>');
42
-        $command = $this->getCommand(new Config($output), $log);
42
+        $command=$this->getCommand(new Config($output), $log);
43 43
         if (!$command) {
44 44
             return $output->writeln('<error>Command not available for this application</error>');
45 45
         }
46 46
 
47
-        $pCommand = "vagrant ssh -c '".$command."'";
47
+        $pCommand="vagrant ssh -c '".$command."'";
48 48
 
49 49
         return new ProcessCommand($pCommand, $this->_projectPath, $output);
50 50
     }
@@ -57,11 +57,11 @@  discard block
 block discarded – undo
57 57
      */
58 58
     private function getCommand(Config $config, $log)
59 59
     {
60
-        $server = $config->_config['magestead']['server'];
61
-        $os = $config->_config['magestead']['os'];
60
+        $server=$config->_config['magestead']['server'];
61
+        $os=$config->_config['magestead']['os'];
62 62
 
63
-        $location = $this->getLogLocation($server, $os);
64
-        $command = 'cat /var/log/'.$location.'/'.$config->base_url.'-'.$log.'.log';
63
+        $location=$this->getLogLocation($server, $os);
64
+        $command='cat /var/log/'.$location.'/'.$config->base_url.'-'.$log.'.log';
65 65
 
66 66
         return $command;
67 67
     }
@@ -74,9 +74,9 @@  discard block
 block discarded – undo
74 74
      */
75 75
     private function getLogLocation($server, $os)
76 76
     {
77
-        $location = 'nginx';
77
+        $location='nginx';
78 78
         if ($server != 'nginx') {
79
-            $location = ($os == 'ubuntu14') ? 'apache2' : 'httpd';
79
+            $location=($os == 'ubuntu14') ? 'apache2' : 'httpd';
80 80
         }
81 81
 
82 82
         return $location;
Please login to merge, or discard this patch.
src/Magestead/Command/Log/StreamCommand.php 2 patches
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -19,8 +19,7 @@  discard block
 block discarded – undo
19 19
     /**
20 20
      * Configure the view command
21 21
      */
22
-    protected function configure()
23
-    {
22
+    protected function configure() {
24 23
         $this->_projectPath = getcwd();
25 24
         $this->setName("log:view");
26 25
         $this->setDescription("View a specific server log");
@@ -32,8 +31,7 @@  discard block
 block discarded – undo
32 31
      * @param OutputInterface $output
33 32
      * @return ProcessCommand
34 33
      */
35
-    protected function execute(InputInterface $input, OutputInterface $output)
36
-    {
34
+    protected function execute(InputInterface $input, OutputInterface $output) {
37 35
         $log = $input->getArgument('log');
38 36
 
39 37
         $output->writeln('<info>Viewing '. ucwords($log) . ' Log</info>');
@@ -51,8 +49,7 @@  discard block
 block discarded – undo
51 49
      * @param $log
52 50
      * @return string
53 51
      */
54
-    private function getCommand(Config $config, $log)
55
-    {
52
+    private function getCommand(Config $config, $log) {
56 53
         $server = $config->_config['magestead']['server'];
57 54
         $os = $config->_config['magestead']['os'];
58 55
 
@@ -67,8 +64,7 @@  discard block
 block discarded – undo
67 64
      * @param $os
68 65
      * @return string
69 66
      */
70
-    private function getLogLocation($server, $os)
71
-    {
67
+    private function getLogLocation($server, $os) {
72 68
         $location = 'nginx';
73 69
         if ($server != 'nginx') {
74 70
             $location = ($os == 'ubuntu14') ? 'apache2' : 'httpd';
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      */
23 23
     protected function configure()
24 24
     {
25
-        $this->_projectPath = getcwd();
25
+        $this->_projectPath=getcwd();
26 26
         $this->setName('log:stream');
27 27
         $this->setDescription('Stream a specific server log');
28 28
         $this->addArgument('log', InputArgument::REQUIRED, 'access or error');
@@ -36,15 +36,15 @@  discard block
 block discarded – undo
36 36
      */
37 37
     protected function execute(InputInterface $input, OutputInterface $output)
38 38
     {
39
-        $log = $input->getArgument('log');
39
+        $log=$input->getArgument('log');
40 40
 
41 41
         $output->writeln('<info>Streaming '.ucwords($log).' Log</info>');
42
-        $command = $this->getCommand(new Config($output), $log);
42
+        $command=$this->getCommand(new Config($output), $log);
43 43
         if (!$command) {
44 44
             return $output->writeln('<error>Command not available for this application</error>');
45 45
         }
46 46
 
47
-        $pCommand = "vagrant ssh -c '".$command."'";
47
+        $pCommand="vagrant ssh -c '".$command."'";
48 48
 
49 49
         return new ProcessCommand($pCommand, $this->_projectPath, $output);
50 50
     }
@@ -57,11 +57,11 @@  discard block
 block discarded – undo
57 57
      */
58 58
     private function getCommand(Config $config, $log)
59 59
     {
60
-        $server = $config->_config['magestead']['server'];
61
-        $os = $config->_config['magestead']['os'];
60
+        $server=$config->_config['magestead']['server'];
61
+        $os=$config->_config['magestead']['os'];
62 62
 
63
-        $location = $this->getLogLocation($server, $os);
64
-        $command = 'tail -f /var/log/'.$location.'/'.$config->base_url.'-'.$log.'.log';
63
+        $location=$this->getLogLocation($server, $os);
64
+        $command='tail -f /var/log/'.$location.'/'.$config->base_url.'-'.$log.'.log';
65 65
 
66 66
         return $command;
67 67
     }
@@ -74,9 +74,9 @@  discard block
 block discarded – undo
74 74
      */
75 75
     private function getLogLocation($server, $os)
76 76
     {
77
-        $location = 'nginx';
77
+        $location='nginx';
78 78
         if ($server != 'nginx') {
79
-            $location = ($os == 'ubuntu14') ? 'apache2' : 'httpd';
79
+            $location=($os == 'ubuntu14') ? 'apache2' : 'httpd';
80 80
         }
81 81
 
82 82
         return $location;
Please login to merge, or discard this patch.
provision/puphpet/magestead/magento2/set_repo_credentials.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-$file = '/home/vagrant/.composer/auth.json';
3
+$file='/home/vagrant/.composer/auth.json';
4 4
 
5
-$publicKey = "$argv[1]";
6
-$privateKey = "$argv[2]";
5
+$publicKey="$argv[1]";
6
+$privateKey="$argv[2]";
7 7
 
8
-$contents = [
8
+$contents=[
9 9
     'http-basic' => [
10 10
         'repo.magento.com' => [
11 11
             'username' => $publicKey,
Please login to merge, or discard this patch.
provision/puphpet/magestead/magento2/add_redis_env.php 3 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 $env = include $file;
5 5
 
6 6
 $env['cache'] =
7
-     [
7
+        [
8 8
         'frontend' =>  [
9 9
             'default' =>  [
10 10
                 'backend'     => 'Cm_Cache_Backend_Redis',
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
         ],
25 25
             ],
26 26
             'page_cache' =>  [
27
-          'backend'         => 'Cm_Cache_Backend_Redis',
28
-          'backend_options' =>  [
27
+            'backend'         => 'Cm_Cache_Backend_Redis',
28
+            'backend_options' =>  [
29 29
                     'server'                    => '127.0.0.1',
30 30
                     'port'                      => '6379',
31 31
                     'persistent'                => '',
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-$file = "$argv[1]/magento2/app/etc/env.php";
4
-$env = include $file;
3
+$file="$argv[1]/magento2/app/etc/env.php";
4
+$env=include $file;
5 5
 
6
-$env['cache'] =
6
+$env['cache']=
7 7
      [
8 8
         'frontend' =>  [
9 9
             'default' =>  [
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,4 +43,4 @@
 block discarded – undo
43 43
         ],
44 44
     ];
45 45
 
46
-file_put_contents($file, "<?php \n \n return ".var_export($env, true).';');
46
+file_put_contents($file, "<?php \n \n return ".var_export($env, TRUE).';');
Please login to merge, or discard this patch.