Remove duplications #153
Remove duplications #153
39 new issues (0 max.) of at least minor severity.
Here is an overview of what got changed by this pull request:
Issues
======
+ Solved 70
- Added 39
Complexity increasing per file
==============================
- Src/lib/request.php 3
Complexity decreasing per file
==============================
+ Src/lib/appveyor.php -3
+ Src/lib/github.php -1
See the complete overview on Codacy
Annotations
Check notice on line 12 in Src/lib/github.php
codacy-production / Codacy Static Code Analysis
Src/lib/github.php#L12
Concat operator must not be surrounded by spaces
Check notice on line 4 in Src/lib/request.php
codacy-production / Codacy Static Code Analysis
Src/lib/request.php#L4
Avoid excessively long variable names like $authorizationBearerToken. Keep variable name length under 20.
Check notice on line 4 in Src/lib/request.php
codacy-production / Codacy Static Code Analysis
Src/lib/request.php#L4
Incorrect spacing between argument "$data" and equals sign; expected 0 but found 1
Check notice on line 6 in Src/lib/request.php
codacy-production / Codacy Static Code Analysis
Src/lib/request.php#L6
Short array syntax must be used to define arrays
Check notice on line 7 in Src/lib/request.php
codacy-production / Codacy Static Code Analysis
Src/lib/request.php#L7
Concat operator must not be surrounded by spaces
Check notice on line 11 in Src/lib/request.php
codacy-production / Codacy Static Code Analysis
Src/lib/request.php#L11
Short array syntax must be used to define arrays
Check notice on line 14 in Src/lib/request.php
codacy-production / Codacy Static Code Analysis
Src/lib/request.php#L14
Array key not aligned correctly; expected 15 spaces but found 8
Check notice on line 17 in Src/lib/request.php
codacy-production / Codacy Static Code Analysis
Src/lib/request.php#L17
Array key not aligned correctly; expected 15 spaces but found 8
Check notice on line 18 in Src/lib/request.php
codacy-production / Codacy Static Code Analysis
Src/lib/request.php#L18
Array key not aligned correctly; expected 15 spaces but found 8
Check notice on line 21 in Src/lib/request.php
codacy-production / Codacy Static Code Analysis
Src/lib/request.php#L21
Array key not aligned correctly; expected 15 spaces but found 8
Check notice on line 22 in Src/lib/request.php
codacy-production / Codacy Static Code Analysis
Src/lib/request.php#L22
Array key not aligned correctly; expected 15 spaces but found 8
Check warning on line 30 in Src/lib/request.php
codacy-production / Codacy Static Code Analysis
Src/lib/request.php#L30
The use of function curl_init() is discouraged
Check warning on line 32 in Src/lib/request.php
codacy-production / Codacy Static Code Analysis
Src/lib/request.php#L32
The use of function curl_setopt_array() is discouraged
Check failure on line 37 in Src/lib/request.php
codacy-production / Codacy Static Code Analysis
Src/lib/request.php#L37
Use of echo language construct is discouraged.
Check failure on line 38 in Src/lib/request.php
codacy-production / Codacy Static Code Analysis
Src/lib/request.php#L38
Use of echo language construct is discouraged.
Check failure on line 39 in Src/lib/request.php
codacy-production / Codacy Static Code Analysis
Src/lib/request.php#L39
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found 'curl_error'.
Check warning on line 39 in Src/lib/request.php
codacy-production / Codacy Static Code Analysis
Src/lib/request.php#L39
The function doRequest() contains an exit expression.
Check warning on line 39 in Src/lib/request.php
codacy-production / Codacy Static Code Analysis
Src/lib/request.php#L39
The use of function curl_error() is discouraged
Check failure on line 39 in Src/lib/request.php
codacy-production / Codacy Static Code Analysis
Src/lib/request.php#L39
Use of die language construct is discouraged.
Check warning on line 42 in Src/lib/request.php
codacy-production / Codacy Static Code Analysis
Src/lib/request.php#L42
The use of function curl_getinfo() is discouraged
Check warning on line 46 in Src/lib/request.php
codacy-production / Codacy Static Code Analysis
Src/lib/request.php#L46
The use of function curl_getinfo() is discouraged
Check warning on line 47 in Src/lib/request.php
codacy-production / Codacy Static Code Analysis
Src/lib/request.php#L47
The use of function curl_close() is discouraged
Check notice on line 49 in Src/lib/request.php
codacy-production / Codacy Static Code Analysis
Src/lib/request.php#L49
Array with multiple values cannot be declared on a single line
Check notice on line 50 in Src/lib/request.php
codacy-production / Codacy Static Code Analysis
Src/lib/request.php#L50
Expected //end doRequest()
Check notice on line 50 in Src/lib/request.php
codacy-production / Codacy Static Code Analysis
Src/lib/request.php#L50
Expected 1 blank line before closing function brace; 0 found