EscolaLMS/topic-types

View on GitHub

Showing 313 of 313 total issues

Line indented incorrectly; expected 0 spaces, found 4
Open

    public function convertAssetPaths(string $input, string $destinationPrefix): array
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 12 spaces, found 8
Open

        Storage::put($destination, file_get_contents($filepath));
Severity: Minor
Found in src/Helpers/Markdown.php by phpcodesniffer

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

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

Whitespace found at end of line
Open

        $destDir = dirname($dest);        

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

                'hh5p_contents.id',

Space before opening parenthesis of function call prohibited
Open

        ContentIndexResource::extend(fn ($thisObj) => [

Line indented incorrectly; expected 12 spaces, found 8
Open

        if (!array_key_exists(self::EXT_STRING_NAME, $pathInfo) ||
Severity: Minor
Found in src/Helpers/Markdown.php by phpcodesniffer

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

            $filepath = $match[2];
Severity: Minor
Found in src/Helpers/Markdown.php by phpcodesniffer

Expected 0 spaces before closing bracket; newline found
Open

                ->has(Lesson::factory()

Line indented incorrectly; expected 12 spaces, found 16
Open

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

Line indented incorrectly; expected 16 spaces, found 12
Open

            if (Storage::exists($destination . '.' . $ext[1])) {
Severity: Minor
Found in src/Helpers/Markdown.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 4
Open

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

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

        return preg_replace_callback('/!\[(.*)\]\s?\((.*)()(.*)\)/', function ($match) {
Severity: Minor
Found in src/Helpers/Markdown.php by phpcodesniffer

Expected 0 spaces before closing bracket; newline found
Open

                    ->has(Lesson::factory()

Line indented incorrectly; expected 0 spaces, found 4
Open

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

Line indented incorrectly; expected 0 spaces, found 4
Open

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

Line indented incorrectly; expected 0 spaces, found 4
Open

    protected function unParseUrl(array $parsedUrl): string
Severity: Minor
Found in src/Helpers/Markdown.php by phpcodesniffer

Closing brace indented incorrectly; expected 12 spaces, found 4
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