EscolaLMS/topic-types

View on GitHub

Showing 313 of 313 total issues

Line indented incorrectly; expected 16 spaces, found 12
Open

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

Opening brace should be on a new line
Open

    public static function apply(array $fields, JsonResource $thisObj): array {

Whitespace found at end of line
Open

            Storage::putFileAs($topic->storage_directory, new File($mocksPath . '/1.mp4'), $word . '.mp4');            

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

                'hh5p_contents.uuid',

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

                DB::Connection() instanceof PostgresConnection ? 'hh5p_contents.parameters::jsonb' : 'hh5p_contents.parameters',

Line indented incorrectly; expected 12 spaces, found 16
Open

                if(str_contains($filepath, 'http') && !str_starts_with($filepath, url('/'))) {
Severity: Minor
Found in src/Helpers/Markdown.php by phpcodesniffer

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

        $destination = sprintf($destinationPrefix . '%s', Str::slug(basename($filepath)));
Severity: Minor
Found in src/Helpers/Markdown.php by phpcodesniffer

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

            $ext = explode('/', $info['mime']);
Severity: Minor
Found in src/Helpers/Markdown.php by phpcodesniffer

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

        });

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

                'hh5p_contents.library_id',

Line indented incorrectly; expected 0 spaces, found 4
Open

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

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

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

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

            Storage::copy($destination, $destination . '.' . $ext[1]);
Severity: Minor
Found in src/Helpers/Markdown.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 4
Open

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

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

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

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

            Storage::putFileAs($path, new File(realpath(__DIR__.'/../mocks/1.pdf'), $filename);

Line indented incorrectly; expected 0 spaces, found 4
Open

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

Expected 1 space after IF keyword; 0 found
Open

                if(str_contains($filepath, 'http') && !str_starts_with($filepath, url('/'))) {
Severity: Minor
Found in src/Helpers/Markdown.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 12
Open

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

Line indented incorrectly; expected 8 spaces, found 4
Open

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