Completed
Push — master ( 8cfc86...810de8 )
by Ekin
03:07
created

config-sample.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
use ekinhbayar\GitAmp\Github\Token;
4
use ekinhbayar\GitAmp\Github\User;
5
6
7
8
return [
9
    'origins' => [
10
        'websocket' => 'localhost:1337',
11
        'server' => 'localhost',
12
    ],
13
    'redis' => [
14
        'hostname' => 'localhost',
15
        'port'     => 6379,
16
    ],
17
    /**
18
     * Assign the IP and port on which to listen.
19
     * Use :
20
    "0.0.0.0" for all IPv4 interfaces
21
    "::"      for all IPv6 interfaces
22
    "*"       for all IPv4 & IPv6
23
     *
24
     */
25
    'expose' => [
26
        'ip' => '*',
27
        'port' => 1337
28
    ],
29
    /**
30
     * Either use a token or a username + password login.
31
     * Note for 2fa users, you can only use tokens.
32
     * https://github.com/settings/tokens
33
     */
34
    'github' => new Token('your-token'),
35
    //'github' => new User('your-username', 'your-password'),
1 ignored issue
show
Unused Code Comprehensibility introduced by
58% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
36
];