Completed
Push — master ( bd6b3a...936121 )
by Aleksander
02:34
created
Event.php 3 patches
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
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'));
Please login to merge, or discard this patch.
example.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.