@@ -21,8 +21,7 @@ discard block |
||
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 |
||
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 |
||
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 . '&'; |
@@ -19,8 +19,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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'; |
@@ -19,8 +19,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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'; |