@@ -18,8 +18,6 @@ |
||
18 | 18 | * __construct |
19 | 19 | * |
20 | 20 | * @param string $command |
21 | - * @param array $output |
|
22 | - * @param int $result |
|
23 | 21 | * @param string $password |
24 | 22 | * @access public |
25 | 23 | * @return void |
@@ -1,12 +1,12 @@ discard block |
||
1 | 1 | <?php |
2 | - namespace Eustatos\gitlab\webhook; |
|
2 | + namespace Eustatos\gitlab\webhook; |
|
3 | 3 | |
4 | - /** |
|
5 | - * Event |
|
6 | - * |
|
7 | - * @package Eustatos\gitlab\webhook |
|
8 | - * @author Alexander Astashkin <[email protected]> |
|
9 | - */ |
|
4 | + /** |
|
5 | + * Event |
|
6 | + * |
|
7 | + * @package Eustatos\gitlab\webhook |
|
8 | + * @author Alexander Astashkin <[email protected]> |
|
9 | + */ |
|
10 | 10 | class Event |
11 | 11 | { |
12 | 12 | private $_command; |
@@ -48,8 +48,8 @@ discard block |
||
48 | 48 | echo 'Result execution: ' . $this->_command . PHP_EOL |
49 | 49 | . $this->_result . PHP_EOL; |
50 | 50 | echo '<pre>'; |
51 | - print_r($this->_output); |
|
52 | - echo '</pre>'; |
|
51 | + print_r($this->_output); |
|
52 | + echo '</pre>'; |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |
@@ -82,7 +82,7 @@ |
||
82 | 82 | $contentType = isset($_SERVER['CONTENT_TYPE']) |
83 | 83 | ? trim($_SERVER['CONTENT_TYPE']) |
84 | 84 | : ''; |
85 | - if (strcasecmp($contentType, 'application/json') !=0 ) { |
|
85 | + if (strcasecmp($contentType, 'application/json') != 0) { |
|
86 | 86 | throw new Exception('Content type must be: application/json'); |
87 | 87 | } |
88 | 88 | $jsonRequest = trim(file_get_contents('php://input')); |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | - require_once('vendor/autoload.php'); |
|
2 | + require_once('vendor/autoload.php'); |
|
3 | 3 | |
4 | - $execution = new \Eustatos\gitlab\webhook\Event( |
|
5 | - $_REQUEST['command'], |
|
6 | - 'b2b pushed' |
|
7 | - ); |
|
8 | - $execution->logResult('gitlab-webhook.log'); |
|
4 | + $execution = new \Eustatos\gitlab\webhook\Event( |
|
5 | + $_REQUEST['command'], |
|
6 | + 'b2b pushed' |
|
7 | + ); |
|
8 | + $execution->logResult('gitlab-webhook.log'); |