INFO: Java 1.8.0_322 Amazon.com Inc. (64-bit)
INFO: Linux 4.4.0-1128-aws amd64
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-core-2.17.0.899.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-cli-2.1.0.566.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
INFO: Index files
INFO: 50 files indexed
INFO: 34 source files to be analyzed
ERROR: Unable to parse file: /code/src/Jobs/CloneCourse.php
ERROR: Parse error at line 27 column 13:
17: use Illuminate\Queue\SerializesModels;
18: use Illuminate\Support\Facades\Log;
19:
20: class CloneCourse implements ShouldQueue
21: {
22: use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
23:
24: public $tries = 3;
25: public $timeout = 18000;
26:
27: private Course $course;
^
28: private Authenticatable $user;
29:
30: /**
31: * @param Course $course
32: * @param Authenticatable $user
33: */
34: public function __construct(Course $course, Authenticatable $user)
35: {
36: $this->course = $course;
37: $this->user = $user;
ERROR: Unable to parse file: /code/src/Services/ExportImportService.php
ERROR: Parse error at line 36 column 13:
26: use Illuminate\Support\Facades\File;
27: use Illuminate\Support\Facades\Log;
28: use Illuminate\Support\Facades\Storage;
29: use Illuminate\Support\Facades\Validator;
30: use Illuminate\Support\Str;
31: use ZanySoft\Zip\Facades\Zip;
32: use ZipArchive;
33:
34: class ExportImportService implements ExportImportServiceContract
35: {
36: private CourseRepositoryContract $courseRepository;
^
37: private LessonRepositoryContract $lessonRepository;
38: private TopicRepositoryContract $topicRepository;
39: private TopicResourceRepositoryContract $topicResourceRepo;
40: private CategoriesRepositoryContract $categoriesRepository;
41:
42: private string $dirFullPath;
43:
44: private array $topicTypes = [
45: 'EscolaLms\\TopicTypes\\Models\\TopicContent\\ScormSco',
46: 'EscolaLms\\TopicTypes\\Models\\TopicContent\\H5P',
ERROR: Unable to parse file: /code/src/Http/Resources/CourseExportResource.php
ERROR: Parse error at line 45 column 79:
35: $this->withoutWrapping();
36:
37: $course = $this->getResource();
38:
39: $fields = [
40: 'title' => $course->title,
41: 'summary' => $course->summary,
42: 'image_path' => self::sanitizePath($course->image_path),
43: 'video_path' => self::sanitizePath($course->video_path),
44: 'duration' => $course->duration,
45: 'scorm_sco' => $this->when($course->scorm_sco_id !== null, fn () => CourseScormScoExportResource::make($course)),
^
46: 'status' => $course->status,
47: 'subtitle' => $course->subtitle,
48: 'language' => $course->language,
49: 'description' => $course->description,
50: 'level' => $course->level,
51: 'lessons' => LessonExportResource::collection($course->lessons()->main()->orderBy('order')->get()),
52: 'poster_path' => self::sanitizePath($course->poster_path),
53: 'categories' => CategoryExportResource::collection($course->categories),
54: 'tags' => $course->tags
55: ];
ERROR: Unable to parse file: /code/src/Http/Controllers/CourseExportImportAPIController.php
ERROR: Parse error at line 23 column 15:
13: use Exception;
14: use Illuminate\Http\JsonResponse;
15:
16: /**
17: * SWAGGER_VERSION
18: * This class should be parent class for other API controllers
19: * Class AppBaseController.
20: */
21: class CourseExportImportAPIController extends EscolaLmsBaseController implements CourseExportImportAPISwagger
22: {
23: protected ExportImportServiceContract $exportImportService;
^
24: protected CloneCourseServiceContract $cloneCourseService;
25:
26: public function __construct(
27: ExportImportServiceContract $exportImportService,
28: CloneCourseServiceContract $cloneCourseService
29: ) {
30: $this->exportImportService = $exportImportService;
31: $this->cloneCourseService = $cloneCourseService;
32: }
33:
ERROR: Unable to parse file: /code/src/Events/CloneCourseEvent.php
ERROR: Parse error at line 14 column 13:
4:
5: use EscolaLms\Courses\Models\Course;
6: use Illuminate\Contracts\Auth\Authenticatable;
7: use Illuminate\Foundation\Events\Dispatchable;
8: use Illuminate\Queue\SerializesModels;
9:
10: abstract class CloneCourseEvent
11: {
12: use Dispatchable, SerializesModels;
13:
14: private Authenticatable $user;
^
15: private Course $course;
16:
17: /**
18: * @param Authenticatable $user
19: * @param Course $course
20: */
21: public function __construct(Authenticatable $user, Course $course)
22: {
23: $this->user = $user;
24: $this->course = $course;
ERROR: Unable to parse file: /code/src/Strategies/ScormScoTopicTypeStrategy.php
ERROR: Parse error at line 12 column 13:
2:
3: namespace EscolaLms\CoursesImportExport\Strategies;
4:
5: use EscolaLms\CoursesImportExport\Strategies\Contract\TopicImportStrategy;
6: use EscolaLms\Scorm\Services\Contracts\ScormServiceContract;
7: use Illuminate\Http\UploadedFile;
8: use Illuminate\Support\Facades\File;
9:
10: class ScormScoTopicTypeStrategy implements TopicImportStrategy
11: {
12: private ScormServiceContract $scormService;
^
13:
14: public function __construct()
15: {
16: $this->scormService = app(ScormServiceContract::class);
17: }
18:
19: public function make(string $path, array $data): ?int
20: {
21: if (!$data['identifier'] || !$data['scorm_file']) {
22: return null;
ERROR: Unable to parse file: /code/src/Strategies/H5PTopicTypeStrategy.php
ERROR: Parse error at line 12 column 13:
2:
3: namespace EscolaLms\CoursesImportExport\Strategies;
4:
5: use EscolaLms\CoursesImportExport\Strategies\Contract\TopicImportStrategy;
6: use EscolaLms\HeadlessH5P\Repositories\Contracts\H5PContentRepositoryContract;
7: use Illuminate\Http\UploadedFile;
8: use Illuminate\Support\Facades\File;
9:
10: class H5PTopicTypeStrategy implements TopicImportStrategy
11: {
12: private H5PContentRepositoryContract $h5PContentRepository;
^
13:
14: public function __construct()
15: {
16: $this->h5PContentRepository = app(H5PContentRepositoryContract::class);
17: }
18:
19: public function make(string $path, array $data): ?int
20: {
21: $filePath = $path . DIRECTORY_SEPARATOR . $data['h5p_file'];
22: if (!File::exists($filePath)) {
INFO: 34/34 source files have been analyzed
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 0.421s
INFO: Final Memory: 11M/95M
INFO: ------------------------------------------------------------------------
|