Skip to content

Update OauthMiddleware.php

Codacy Production / Codacy Static Code Analysis required action Jul 22, 2024 in 0s

1 new security issue (0 max.).

Codacy Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 4
- Added 11
           

Coverage increased per file
===========================
+ src/Http/OauthMiddleware.php  1.239
         

Complexity increasing per file
==============================
- src/Http/OauthMiddleware.php  1
         

Clones added
============
- test/OauthMiddlewareTest.php  4
         

See the complete overview on Codacy

Annotations

Check notice on line 47 in src/Http/OauthMiddleware.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/Http/OauthMiddleware.php#L47

Expected "if (...) {\n"; found "if(...){\n"

Check notice on line 47 in src/Http/OauthMiddleware.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/Http/OauthMiddleware.php#L47

Expected 1 space after IF keyword; 0 found

Check notice on line 47 in src/Http/OauthMiddleware.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/Http/OauthMiddleware.php#L47

Operator ! prohibited; use === FALSE instead

Check warning on line 47 in src/Http/OauthMiddleware.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/Http/OauthMiddleware.php#L47

The use of function is_null() is discouraged; use strict comparison "=== null" instead.

Check notice on line 47 in src/Http/OauthMiddleware.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/Http/OauthMiddleware.php#L47

There must be a single space between the closing parenthesis and the opening brace of a multi-line IF statement; found 0 spaces

Check notice on line 18 in test/OauthMiddlewareTest.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

test/OauthMiddlewareTest.php#L18

Opening parenthesis of a multi-line function call must be the last content on the line

Check notice on line 20 in test/OauthMiddlewareTest.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

test/OauthMiddlewareTest.php#L20

Closing parenthesis of a multi-line function call must be on a line by itself

Check notice on line 22 in test/OauthMiddlewareTest.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

test/OauthMiddlewareTest.php#L22

Opening parenthesis of a multi-line function call must be the last content on the line

Check notice on line 24 in test/OauthMiddlewareTest.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

test/OauthMiddlewareTest.php#L24

Closing parenthesis of a multi-line function call must be on a line by itself

Check notice on line 101 in test/OauthMiddlewareTest.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

test/OauthMiddlewareTest.php#L101

Missing doc comment for function testCheckAllowedUserScope()

Check notice on line 130 in test/OauthMiddlewareTest.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

test/OauthMiddlewareTest.php#L130

Closing parenthesis not aligned correctly; expected 30 spaces but found 16