Skip to content

rewrite update-ldap-cache.php #292

rewrite update-ldap-cache.php

rewrite update-ldap-cache.php #292

Triggered via pull request April 7, 2025 17:32
@simonLeary42simonLeary42
synchronize #157
Status Success
Total duration 17s
Artifacts

lint.yml

on: pull_request_target
Run linters
14s
Run linters
Fit to window
Zoom out
Zoom in

Annotations

37 errors and 2 warnings
workers/update-ldap-cache.php#L32
Expected 1 space after FUNCTION keyword; 0 found (Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction)
workers/update-ldap-cache.php#L32
Opening brace must be the last content on the line (Squiz.Functions.MultiLineFunctionDeclaration.ContentAfterBrace)
workers/update-ldap-cache.php#L32
Expected 1 space before opening brace; found 0 (Squiz.Functions.MultiLineFunctionDeclaration.SpaceBeforeBrace)
workers/update-ldap-cache.php#L32
Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore)
workers/update-ldap-cache.php#L32
Each PHP statement must be on a line by itself (Generic.Formatting.DisallowMultipleStatements.SameLine)
workers/update-ldap-cache.php#L35
Expected 1 space after FOREACH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
workers/update-ldap-cache.php#L35
Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis)
workers/update-ldap-cache.php#L37
Expected 1 space after FOREACH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
workers/update-ldap-cache.php#L37
Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis)
workers/update-ldap-cache.php#L46
Expected 1 space after FUNCTION keyword; 0 found (Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction)
workers/update-ldap-cache.php#L46
Opening brace must be the last content on the line (Squiz.Functions.MultiLineFunctionDeclaration.ContentAfterBrace)
workers/update-ldap-cache.php#L46
Expected 1 space before opening brace; found 0 (Squiz.Functions.MultiLineFunctionDeclaration.SpaceBeforeBrace)
workers/update-ldap-cache.php#L46
Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore)
workers/update-ldap-cache.php#L46
Each PHP statement must be on a line by itself (Generic.Formatting.DisallowMultipleStatements.SameLine)
workers/update-ldap-cache.php#L49
Expected 1 space after FOREACH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
workers/update-ldap-cache.php#L49
Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis)
workers/update-ldap-cache.php#L57
Expected 1 space after FUNCTION keyword; 0 found (Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction)
workers/update-ldap-cache.php#L57
Opening brace must be the last content on the line (Squiz.Functions.MultiLineFunctionDeclaration.ContentAfterBrace)
workers/update-ldap-cache.php#L57
Expected 1 space before opening brace; found 0 (Squiz.Functions.MultiLineFunctionDeclaration.SpaceBeforeBrace)
workers/update-ldap-cache.php#L57
Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore)
workers/update-ldap-cache.php#L57
Each PHP statement must be on a line by itself (Generic.Formatting.DisallowMultipleStatements.SameLine)
workers/update-ldap-cache.php#L62
Expected 1 space after FOREACH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
workers/update-ldap-cache.php#L62
Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis)
workers/update-ldap-cache.php#L65
Expected 1 space after FOREACH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
workers/update-ldap-cache.php#L65
Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis)
workers/update-ldap-cache.php#L66
Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis)
workers/update-ldap-cache.php#L68
Expected 1 space after FOREACH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
workers/update-ldap-cache.php#L68
Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis)
workers/update-ldap-cache.php#L75
Expected 1 space after FOREACH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
workers/update-ldap-cache.php#L75
Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis)
workers/update-ldap-cache.php#L82
Expected 1 blank line at end of file; 2 found (PSR2.Files.EndFileNewline.TooMany)
resources/lib/UnityLDAP.php#L340
Opening brace should be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine)
resources/lib/UnityLDAP.php#L354
Expected 1 space after FOREACH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
resources/lib/UnityLDAP.php#L354
Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis)
resources/lib/UnityLDAP.php#L361
Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
resources/lib/UnityLDAP.php#L361
Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis)
resources/lib/UnityRedis.php#L99
Opening brace should be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine)
workers/update-ldap-cache.php#L25
Line exceeds 120 characters; contains 130 characters (Generic.Files.LineLength.TooLong)
Run linters
The process '/usr/bin/git' failed with exit code 128