GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 24-26 lines in 3 locations

src/Factories/MonologHandlerFactory.php 3 locations

@@ 63-88 (lines=26) @@
60
     * @param  string $title The title/subject to use
61
     * @return \Tylercd100\Monolog\Handler\MailgunHandler
62
     */
63
    protected static function mailgun(array $config = [], $title = null){
64
        $defaults = [
65
            "title" => null,
66
            "level" => Logger::CRITICAL,
67
            "bubble" => true,
68
            "useSSL" => true,
69
            "host" => 'api.mailgun.net',
70
            "version" => 'v3'
71
        ];
72
73
        $c = array_merge($defaults,$config);
74
75
        $c['title'] = $title;
76
77
        return new \Tylercd100\Monolog\Handler\MailgunHandler(
78
            $c["to"],
79
            $c["title"],
80
            $c["from"],
81
            $c["token"],
82
            $c["domain"],
83
            $c["level"],
84
            $c["bubble"],
85
            $c["useSSL"],
86
            $c["host"],
87
            $c["version"]);
88
    }
89
90
    /**
91
     * Returns a FlowdockHandler
@@ 136-159 (lines=24) @@
133
     * @param  string $title The title/subject to use
134
     * @return \Tylercd100\Monolog\Handler\PlivoHandler
135
     */
136
    protected static function plivo(array $config = [], $title = null){
137
        $defaults = [
138
            'level' => Logger::DEBUG,
139
            'bubble' => true,
140
            'useSSL' => true,
141
            'host' => 'api.plivo.com',
142
            'version' => 'v1',
143
            'limit' => 160,
144
        ];
145
146
        $c = array_merge($defaults,$config);
147
148
        return new \Tylercd100\Monolog\Handler\PlivoHandler(
149
            $c['token'],
150
            $c['auth_id'],
151
            $c['from'],
152
            $c['to'],
153
            $c['level'],
154
            $c['bubble'],
155
            $c['useSSL'],
156
            $c['host'],
157
            $c['version'],
158
            $c['limit']);
159
    }
160
161
    /**
162
     * Returns a TwilioHandler
@@ 167-190 (lines=24) @@
164
     * @param  string $title The title/subject to use
165
     * @return \Tylercd100\Monolog\Handler\TwilioHandler
166
     */
167
    protected static function twilio(array $config = [], $title = null){
168
        $defaults = [
169
            'level' => Logger::DEBUG,
170
            'bubble' => true,
171
            'useSSL' => true,
172
            'host' => 'api.twilio.com',
173
            'version' => '2010-04-01',
174
            'limit' => 160,
175
        ];
176
177
        $c = array_merge($defaults,$config);
178
179
        return new \Tylercd100\Monolog\Handler\TwilioHandler(
180
            $c['secret'],
181
            $c['sid'],
182
            $c['from'],
183
            $c['to'],
184
            $c['level'],
185
            $c['bubble'],
186
            $c['useSSL'],
187
            $c['host'],
188
            $c['version'],
189
            $c['limit']);
190
    }
191
192
    /**
193
     * Returns a RavenHandler