EscolaLMS/topic-types

View on GitHub

Showing 313 of 313 total issues

Line exceeds 120 characters; contains 122 characters
Open

            echo 'Error | File: ' . $err->getFile() . ' | Line: ' . $err->getLine() . ' | Message: ' . $err->getMessage();

Space before opening parenthesis of function call prohibited
Open

            fn () => DB::raw("COUNT(topic_h5ps.value) as count_h5p"),

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $pathInfo = pathinfo($destination);
Severity: Minor
Found in src/Helpers/Markdown.php by phpcodesniffer

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        $destination = url('api/images/img?path=') . $destination;
Severity: Minor
Found in src/Helpers/Markdown.php by phpcodesniffer

Line indented incorrectly; expected at least 20 spaces, found 16
Open

                $pattern = parse_url($filepath);
Severity: Minor
Found in src/Helpers/Markdown.php by phpcodesniffer

Line indented incorrectly; expected at least 16 spaces, found 12
Open

            return $match[0];
Severity: Minor
Found in src/Helpers/Markdown.php by phpcodesniffer

Space before opening parenthesis of function call prohibited
Open

            fn () => [

Line indented incorrectly; expected 0 spaces, found 4
Open

    public const PATH_STRING_NAME = 'path';
Severity: Minor
Found in src/Helpers/Markdown.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 4
Open

    private function convertFilePathByHttp(string $destinationPrefix, string $filepath, string &$destination): array
Severity: Minor
Found in src/Helpers/Markdown.php by phpcodesniffer

Line indented incorrectly; expected 12 spaces, found 8
Open

        }
Severity: Minor
Found in src/Helpers/Markdown.php by phpcodesniffer

Multi-line function call not indented correctly; expected 16 spaces but found 12
Open

            return [

Multi-line function call not indented correctly; expected 16 spaces but found 12
Open

            ];

Expected 0 spaces before closing bracket; newline found
Open

                        ->has(Lesson::factory()

Line indented incorrectly; expected 0 spaces, found 4
Open

    public const PASS_STRING_NAME = 'pass';
Severity: Minor
Found in src/Helpers/Markdown.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 4
Open

    private function convertFilePathByApiPattern(
Severity: Minor
Found in src/Helpers/Markdown.php by phpcodesniffer

Line indented incorrectly; expected at least 16 spaces, found 12
Open

            $destination = $destination . '.' . $ext[1];
Severity: Minor
Found in src/Helpers/Markdown.php by phpcodesniffer

Line indented incorrectly; expected at least 20 spaces, found 16
Open

                $destination = $vars['path'];
Severity: Minor
Found in src/Helpers/Markdown.php by phpcodesniffer

Line indented incorrectly; expected 12 spaces, found 8
Open

        }, $input);
Severity: Minor
Found in src/Helpers/Markdown.php by phpcodesniffer

Space before opening parenthesis of function call prohibited
Open

            fn () => [['topic_h5ps.value', 'hh5p_contents.id']],

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    {
Severity: Minor
Found in src/Helpers/Markdown.php by phpcodesniffer
Severity
Category
Status
Source
Language