diff --git a/backend/.php-cs-fixer.cache b/backend/.php-cs-fixer.cache index 39b28d7..371612a 100644 --- a/backend/.php-cs-fixer.cache +++ b/backend/.php-cs-fixer.cache @@ -1 +1 @@ -{"php":"8.2.12","version":"3.51.0:v3.51.0#127fa74f010da99053e3f5b62672615b72dd6efd","indent":" ","lineEnding":"\n","rules":{"align_multiline_comment":true,"array_syntax":true,"backtick_to_shell_exec":true,"binary_operator_spaces":true,"blank_line_before_statement":{"statements":["return"]},"braces_position":{"allow_single_line_anonymous_functions":true,"allow_single_line_empty_anonymous_classes":true},"class_attributes_separation":{"elements":{"method":"one"}},"class_definition":{"single_line":true},"class_reference_name_casing":true,"clean_namespace":true,"concat_space":true,"declare_parentheses":true,"echo_tag_syntax":true,"empty_loop_body":{"style":"braces"},"empty_loop_condition":true,"fully_qualified_strict_types":true,"function_declaration":true,"general_phpdoc_tag_rename":{"replacements":{"inheritDocs":"inheritDoc"}},"global_namespace_import":{"import_classes":false,"import_constants":false,"import_functions":false},"include":true,"increment_style":true,"integer_literal_case":true,"lambda_not_used_import":true,"linebreak_after_opening_tag":true,"magic_constant_casing":true,"magic_method_casing":true,"method_argument_space":{"on_multiline":"ignore"},"native_function_casing":true,"native_type_declaration_casing":true,"no_alias_language_construct_call":true,"no_alternative_syntax":true,"no_binary_string":true,"no_blank_lines_after_phpdoc":true,"no_empty_comment":true,"no_empty_phpdoc":true,"no_empty_statement":true,"no_extra_blank_lines":{"tokens":["attribute","case","continue","curly_brace_block","default","extra","parenthesis_brace_block","square_brace_block","switch","throw","use"]},"no_leading_namespace_whitespace":true,"no_mixed_echo_print":true,"no_multiline_whitespace_around_double_arrow":true,"no_null_property_initialization":true,"no_short_bool_cast":true,"no_singleline_whitespace_before_semicolons":true,"no_spaces_around_offset":true,"no_superfluous_phpdoc_tags":{"allow_hidden_params":true,"remove_inheritdoc":true},"no_trailing_comma_in_singleline":true,"no_unneeded_braces":{"namespaces":true},"no_unneeded_control_parentheses":{"statements":["break","clone","continue","echo_print","others","return","switch_case","yield","yield_from"]},"no_unneeded_import_alias":true,"no_unset_cast":true,"no_unused_imports":true,"no_useless_concat_operator":true,"no_useless_nullsafe_operator":true,"no_whitespace_before_comma_in_array":true,"normalize_index_brace":true,"nullable_type_declaration":true,"nullable_type_declaration_for_default_null_value":true,"object_operator_without_whitespace":true,"operator_linebreak":{"only_booleans":true},"ordered_imports":{"imports_order":["class","function","const"],"sort_algorithm":"alpha"},"ordered_types":{"null_adjustment":"always_last","sort_algorithm":"none"},"php_unit_fqcn_annotation":true,"php_unit_method_casing":true,"phpdoc_align":true,"phpdoc_annotation_without_dot":true,"phpdoc_indent":true,"phpdoc_inline_tag_normalizer":true,"phpdoc_no_access":true,"phpdoc_no_alias_tag":true,"phpdoc_no_package":true,"phpdoc_no_useless_inheritdoc":true,"phpdoc_order":{"order":["param","return","throws"]},"phpdoc_return_self_reference":true,"phpdoc_scalar":true,"phpdoc_separation":{"groups":[["Annotation","NamedArgumentConstructor","Target"],["author","copyright","license"],["category","package","subpackage"],["property","property-read","property-write"],["deprecated","link","see","since"]]},"phpdoc_single_line_var_spacing":true,"phpdoc_summary":true,"phpdoc_tag_type":{"tags":{"inheritDoc":"inline"}},"phpdoc_to_comment":true,"phpdoc_trim":true,"phpdoc_trim_consecutive_blank_line_separation":true,"phpdoc_types":true,"phpdoc_types_order":{"null_adjustment":"always_last","sort_algorithm":"none"},"phpdoc_var_without_name":true,"semicolon_after_instruction":true,"simple_to_complex_string_variable":true,"single_class_element_per_statement":true,"single_import_per_statement":true,"single_line_comment_spacing":true,"single_line_comment_style":{"comment_types":["hash"]},"single_line_throw":true,"single_quote":true,"single_space_around_construct":true,"space_after_semicolon":{"remove_in_empty_for_expressions":true},"standardize_increment":true,"standardize_not_equals":true,"statement_indentation":{"stick_comment_to_next_continuous_control_statement":true},"switch_continue_to_break":true,"trailing_comma_in_multiline":true,"trim_array_spaces":true,"type_declaration_spaces":true,"types_spaces":true,"unary_operator_spaces":true,"whitespace_after_comma_in_array":true,"yoda_style":true,"cast_spaces":true,"blank_line_after_opening_tag":true,"blank_line_between_import_groups":true,"blank_lines_before_namespace":true,"compact_nullable_type_declaration":true,"declare_equal_normalize":true,"lowercase_cast":true,"lowercase_static_reference":true,"new_with_parentheses":true,"no_blank_lines_after_class_opening":true,"no_leading_import_slash":true,"no_whitespace_in_blank_line":true,"ordered_class_elements":{"order":["use_trait"]},"return_type_declaration":true,"short_scalar_cast":true,"single_trait_insert_per_statement":true,"ternary_operator_spaces":true,"visibility_required":true,"blank_line_after_namespace":true,"constant_case":true,"control_structure_braces":true,"control_structure_continuation_position":true,"elseif":true,"indentation_type":true,"line_ending":true,"lowercase_keywords":true,"no_break_comment":true,"no_closing_tag":true,"no_multiple_statements_per_line":true,"no_space_around_double_colon":true,"no_spaces_after_function_name":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_line_after_imports":true,"spaces_inside_parentheses":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"encoding":true,"full_opening_tag":true},"hashes":{"src\\Controller\\Api\\ClassesController.php":"3edd9a69cd0992943c7f4e35e189a328","src\\Controller\\Api\\TimetableController.php":"c9b1d63edf22527d74b68c59b9bd06eb","src\\Entity\\ClassGroups.php":"6bc6445daf9e43c60078656be46a06d4","src\\Entity\\DaySchedule.php":"56b4524fd686bf525de63858705ecfb2","src\\Entity\\Event.php":"6cbed0ffedbaccef2e8935c1a584977b","src\\Entity\\EventHours.php":"b437c36942eca2170869a2a7aaf2fb70","src\\Entity\\WeekSchedule.php":"a622ed2509b48533d6d6bc79a42dbdcc","src\\Kernel.php":"065c02fc2d62bfff3cd16f3a0b46d9ee","src\\Repository\\ClassGroupsRepository.php":"92142c8ee810ca31f60bffab20a87b0d","src\\Repository\\DayScheduleRepository.php":"98703542528a91067ab9ce94728d37d2","src\\Repository\\EventHoursRepository.php":"ae0ae56be4254d2d2e0d0dda12c03723","src\\Repository\\EventRepository.php":"8be5088a65ffa6accaf4ccdbfb2f203b","src\\Repository\\WeekScheduleRepository.php":"49e3ea686a24c1193a983c024d08d22c","src\\Service\\ClassesScraperService.php":"d1961c5983c33c3fb970892a4976baa7","src\\Service\\JsonService.php":"130ad9ecda589dd98c6788ee552b66c1","src\\Service\\TimetableService.php":"efc4917fd4b881eac4e2c6d481b38904","src\\Service\\XMLService.php":"8db6a1d71c24b578809ad0793f2bd9d6","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder\\.php-cs-fixer.dist.php":"4a5cd9e046891dc468fde4a126674df1","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder1\\.php-cs-fixer.dist.php":"4a5cd9e046891dc468fde4a126674df1","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder8214\\src\\Service\\TimetableService.php":"efc4917fd4b881eac4e2c6d481b38904","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder5526\\src\\Service\\TimetableService.php":"efc4917fd4b881eac4e2c6d481b38904","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder563\\src\\Service\\TimetableService.php":"efc4917fd4b881eac4e2c6d481b38904","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder10365\\src\\Service\\TimetableService.php":"076a4cfe4213624431ce14be32f85675","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder9018\\src\\Service\\TimetableService.php":"13c4b244ab3280ab8f15336cded328eb","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder2666\\src\\Entity\\Event.php":"a31cdea7428a9d5caf1e22be96dc4409","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder4489\\src\\Service\\TimetableService.php":"13c4b244ab3280ab8f15336cded328eb","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder2522\\src\\Entity\\Event.php":"a31cdea7428a9d5caf1e22be96dc4409","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder8603\\src\\Service\\TimetableService.php":"13c4b244ab3280ab8f15336cded328eb","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder2585\\src\\Entity\\Event.php":"a31cdea7428a9d5caf1e22be96dc4409","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder7329\\src\\Service\\TimetableService.php":"13c4b244ab3280ab8f15336cded328eb","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder2168\\src\\Entity\\Event.php":"a31cdea7428a9d5caf1e22be96dc4409","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder752\\src\\Service\\TimetableService.php":"13c4b244ab3280ab8f15336cded328eb"}} \ No newline at end of file +{"php":"8.2.12","version":"3.51.0:v3.51.0#127fa74f010da99053e3f5b62672615b72dd6efd","indent":" ","lineEnding":"\n","rules":{"align_multiline_comment":true,"array_syntax":true,"backtick_to_shell_exec":true,"binary_operator_spaces":true,"blank_line_before_statement":{"statements":["return"]},"braces_position":{"allow_single_line_anonymous_functions":true,"allow_single_line_empty_anonymous_classes":true},"class_attributes_separation":{"elements":{"method":"one"}},"class_definition":{"single_line":true},"class_reference_name_casing":true,"clean_namespace":true,"concat_space":true,"declare_parentheses":true,"echo_tag_syntax":true,"empty_loop_body":{"style":"braces"},"empty_loop_condition":true,"fully_qualified_strict_types":true,"function_declaration":true,"general_phpdoc_tag_rename":{"replacements":{"inheritDocs":"inheritDoc"}},"global_namespace_import":{"import_classes":false,"import_constants":false,"import_functions":false},"include":true,"increment_style":true,"integer_literal_case":true,"lambda_not_used_import":true,"linebreak_after_opening_tag":true,"magic_constant_casing":true,"magic_method_casing":true,"method_argument_space":{"on_multiline":"ignore"},"native_function_casing":true,"native_type_declaration_casing":true,"no_alias_language_construct_call":true,"no_alternative_syntax":true,"no_binary_string":true,"no_blank_lines_after_phpdoc":true,"no_empty_comment":true,"no_empty_phpdoc":true,"no_empty_statement":true,"no_extra_blank_lines":{"tokens":["attribute","case","continue","curly_brace_block","default","extra","parenthesis_brace_block","square_brace_block","switch","throw","use"]},"no_leading_namespace_whitespace":true,"no_mixed_echo_print":true,"no_multiline_whitespace_around_double_arrow":true,"no_null_property_initialization":true,"no_short_bool_cast":true,"no_singleline_whitespace_before_semicolons":true,"no_spaces_around_offset":true,"no_superfluous_phpdoc_tags":{"allow_hidden_params":true,"remove_inheritdoc":true},"no_trailing_comma_in_singleline":true,"no_unneeded_braces":{"namespaces":true},"no_unneeded_control_parentheses":{"statements":["break","clone","continue","echo_print","others","return","switch_case","yield","yield_from"]},"no_unneeded_import_alias":true,"no_unset_cast":true,"no_unused_imports":true,"no_useless_concat_operator":true,"no_useless_nullsafe_operator":true,"no_whitespace_before_comma_in_array":true,"normalize_index_brace":true,"nullable_type_declaration":true,"nullable_type_declaration_for_default_null_value":true,"object_operator_without_whitespace":true,"operator_linebreak":{"only_booleans":true},"ordered_imports":{"imports_order":["class","function","const"],"sort_algorithm":"alpha"},"ordered_types":{"null_adjustment":"always_last","sort_algorithm":"none"},"php_unit_fqcn_annotation":true,"php_unit_method_casing":true,"phpdoc_align":true,"phpdoc_annotation_without_dot":true,"phpdoc_indent":true,"phpdoc_inline_tag_normalizer":true,"phpdoc_no_access":true,"phpdoc_no_alias_tag":true,"phpdoc_no_package":true,"phpdoc_no_useless_inheritdoc":true,"phpdoc_order":{"order":["param","return","throws"]},"phpdoc_return_self_reference":true,"phpdoc_scalar":true,"phpdoc_separation":{"groups":[["Annotation","NamedArgumentConstructor","Target"],["author","copyright","license"],["category","package","subpackage"],["property","property-read","property-write"],["deprecated","link","see","since"]]},"phpdoc_single_line_var_spacing":true,"phpdoc_summary":true,"phpdoc_tag_type":{"tags":{"inheritDoc":"inline"}},"phpdoc_to_comment":true,"phpdoc_trim":true,"phpdoc_trim_consecutive_blank_line_separation":true,"phpdoc_types":true,"phpdoc_types_order":{"null_adjustment":"always_last","sort_algorithm":"none"},"phpdoc_var_without_name":true,"semicolon_after_instruction":true,"simple_to_complex_string_variable":true,"single_class_element_per_statement":true,"single_import_per_statement":true,"single_line_comment_spacing":true,"single_line_comment_style":{"comment_types":["hash"]},"single_line_throw":true,"single_quote":true,"single_space_around_construct":true,"space_after_semicolon":{"remove_in_empty_for_expressions":true},"standardize_increment":true,"standardize_not_equals":true,"statement_indentation":{"stick_comment_to_next_continuous_control_statement":true},"switch_continue_to_break":true,"trailing_comma_in_multiline":true,"trim_array_spaces":true,"type_declaration_spaces":true,"types_spaces":true,"unary_operator_spaces":true,"whitespace_after_comma_in_array":true,"yoda_style":true,"cast_spaces":true,"blank_line_after_opening_tag":true,"blank_line_between_import_groups":true,"blank_lines_before_namespace":true,"compact_nullable_type_declaration":true,"declare_equal_normalize":true,"lowercase_cast":true,"lowercase_static_reference":true,"new_with_parentheses":true,"no_blank_lines_after_class_opening":true,"no_leading_import_slash":true,"no_whitespace_in_blank_line":true,"ordered_class_elements":{"order":["use_trait"]},"return_type_declaration":true,"short_scalar_cast":true,"single_trait_insert_per_statement":true,"ternary_operator_spaces":true,"visibility_required":true,"blank_line_after_namespace":true,"constant_case":true,"control_structure_braces":true,"control_structure_continuation_position":true,"elseif":true,"indentation_type":true,"line_ending":true,"lowercase_keywords":true,"no_break_comment":true,"no_closing_tag":true,"no_multiple_statements_per_line":true,"no_space_around_double_colon":true,"no_spaces_after_function_name":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_line_after_imports":true,"spaces_inside_parentheses":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"encoding":true,"full_opening_tag":true},"hashes":{"src\\Controller\\Api\\ClassesController.php":"3edd9a69cd0992943c7f4e35e189a328","src\\Controller\\Api\\TimetableController.php":"c9b1d63edf22527d74b68c59b9bd06eb","src\\Entity\\ClassGroups.php":"6bc6445daf9e43c60078656be46a06d4","src\\Entity\\DaySchedule.php":"56b4524fd686bf525de63858705ecfb2","src\\Entity\\Event.php":"6cbed0ffedbaccef2e8935c1a584977b","src\\Entity\\EventHours.php":"b437c36942eca2170869a2a7aaf2fb70","src\\Entity\\WeekSchedule.php":"a622ed2509b48533d6d6bc79a42dbdcc","src\\Kernel.php":"065c02fc2d62bfff3cd16f3a0b46d9ee","src\\Repository\\ClassGroupsRepository.php":"92142c8ee810ca31f60bffab20a87b0d","src\\Repository\\DayScheduleRepository.php":"98703542528a91067ab9ce94728d37d2","src\\Repository\\EventHoursRepository.php":"ae0ae56be4254d2d2e0d0dda12c03723","src\\Repository\\EventRepository.php":"8be5088a65ffa6accaf4ccdbfb2f203b","src\\Repository\\WeekScheduleRepository.php":"49e3ea686a24c1193a983c024d08d22c","src\\Service\\ClassesScraperService.php":"d1961c5983c33c3fb970892a4976baa7","src\\Service\\JsonService.php":"130ad9ecda589dd98c6788ee552b66c1","src\\Service\\TimetableService.php":"efc4917fd4b881eac4e2c6d481b38904","src\\Service\\XMLService.php":"8db6a1d71c24b578809ad0793f2bd9d6","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder\\.php-cs-fixer.dist.php":"4a5cd9e046891dc468fde4a126674df1","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder1\\.php-cs-fixer.dist.php":"4a5cd9e046891dc468fde4a126674df1","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder8214\\src\\Service\\TimetableService.php":"efc4917fd4b881eac4e2c6d481b38904","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder5526\\src\\Service\\TimetableService.php":"efc4917fd4b881eac4e2c6d481b38904","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder563\\src\\Service\\TimetableService.php":"efc4917fd4b881eac4e2c6d481b38904","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder10365\\src\\Service\\TimetableService.php":"076a4cfe4213624431ce14be32f85675","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder9018\\src\\Service\\TimetableService.php":"13c4b244ab3280ab8f15336cded328eb","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder2666\\src\\Entity\\Event.php":"a31cdea7428a9d5caf1e22be96dc4409","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder4489\\src\\Service\\TimetableService.php":"13c4b244ab3280ab8f15336cded328eb","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder2522\\src\\Entity\\Event.php":"a31cdea7428a9d5caf1e22be96dc4409","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder8603\\src\\Service\\TimetableService.php":"13c4b244ab3280ab8f15336cded328eb","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder2585\\src\\Entity\\Event.php":"a31cdea7428a9d5caf1e22be96dc4409","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder7329\\src\\Service\\TimetableService.php":"13c4b244ab3280ab8f15336cded328eb","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder2168\\src\\Entity\\Event.php":"a31cdea7428a9d5caf1e22be96dc4409","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder752\\src\\Service\\TimetableService.php":"13c4b244ab3280ab8f15336cded328eb","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder\\src\\Service\\TimetableService.php":"13c4b244ab3280ab8f15336cded328eb","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder1\\src\\Service\\TimetableService.php":"91a43e58fa24eae9e176aa638df75b94","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder2\\src\\Service\\TimetableService.php":"e5aac0e347b905d63eaa1ea36d043be5","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder7\\src\\Service\\TimetableService.php":"c4056ed21f07e0ae895573a42f488978","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder5\\src\\Service\\TimetableService.php":"91a43e58fa24eae9e176aa638df75b94","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder11\\src\\Service\\TimetableService.php":"c4056ed21f07e0ae895573a42f488978","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder9\\src\\Service\\TimetableService.php":"10ea7a443641069bb9e146fdec8bcaa9","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder5295\\src\\Service\\TimetableService.php":"dc087fdfd3ca2b51e147bc71afed205c","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder6\\src\\Service\\TimetableService.php":"b7323be551bcbe1c61568d31bf5a0540","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder10\\src\\Service\\TimetableService.php":"b7323be551bcbe1c61568d31bf5a0540","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder717\\src\\Service\\TimetableService.php":"b7323be551bcbe1c61568d31bf5a0540","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder3\\src\\Service\\TimetableService.php":"c6a826b16efdb9f4fb7baca318ebbba1","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder1454\\src\\Service\\TimetableService.php":"fb3577b70061b2cb7e121e7419eed09d","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder1873\\src\\Service\\TimetableService.php":"fb3577b70061b2cb7e121e7419eed09d","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder2900\\src\\Service\\TimetableService.php":"98e035c9175c696e95ec57383f6b1391","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder4\\src\\Service\\TimetableService.php":"98e035c9175c696e95ec57383f6b1391","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder8\\src\\Service\\TimetableService.php":"28d3fdb45b0ad0510f4c1ec70901cdc1","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder6400\\src\\Service\\TimetableService.php":"dc087fdfd3ca2b51e147bc71afed205c","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder6194\\src\\Service\\TimetableService.php":"c9a76debf9c7d105da1c75f1f1c5a768","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder3876\\src\\Service\\TimetableService.php":"6c3a78c651acc2998b69a3d82f1aa10f","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder5225\\src\\Service\\TimetableService.php":"c9a76debf9c7d105da1c75f1f1c5a768","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder375\\src\\Service\\TimetableService.php":"8dfce8aa08fb88104705f8070ca6aca7","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder4452\\src\\Service\\TimetableService.php":"8dfce8aa08fb88104705f8070ca6aca7","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder4732\\src\\Service\\TimetableService.php":"8dfce8aa08fb88104705f8070ca6aca7","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder460\\src\\Service\\TimetableService.php":"8dfce8aa08fb88104705f8070ca6aca7","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder5661\\src\\Service\\TimetableService.php":"8dfce8aa08fb88104705f8070ca6aca7","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder6058\\src\\Service\\TimetableService.php":"8dfce8aa08fb88104705f8070ca6aca7","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder4532\\src\\Service\\TimetableService.php":"8dfce8aa08fb88104705f8070ca6aca7","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder8456\\src\\Service\\TimetableService.php":"8dfce8aa08fb88104705f8070ca6aca7","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder4297\\src\\Service\\TimetableService.php":"8dfce8aa08fb88104705f8070ca6aca7","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder4424\\src\\Service\\TimetableService.php":"37b9c51836b9c2ed2e5c0c3455659ec7","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder7927\\src\\Service\\TimetableService.php":"8dfce8aa08fb88104705f8070ca6aca7","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder1121\\src\\Service\\TimetableService.php":"8dfce8aa08fb88104705f8070ca6aca7","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder3642\\src\\Service\\TimetableService.php":"37b9c51836b9c2ed2e5c0c3455659ec7","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder1167\\src\\Service\\TimetableService.php":"8dfce8aa08fb88104705f8070ca6aca7","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder4038\\src\\Service\\TimetableService.php":"ecac1cb17a695d8f62e4a85d95bd7f84","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder2617\\src\\Service\\TimetableService.php":"580879cc10358bcf562a232dd06527cd","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder254\\src\\Service\\TimetableService.php":"a702ad2e48349275539b9f20a1a8b433","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder504\\src\\Service\\TimetableService.php":"c91ce96f27402d577a046a2524ca83f5","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder9082\\src\\Service\\TimetableService.php":"c5e9d9d1f6a84d83a9819b00af6f53c8","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder5024\\src\\Service\\TimetableService.php":"f7d05071a1ad3c7fa609779078fb9c48","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder5760\\src\\Service\\TimetableService.php":"b8681ba5744ebf78fc89404d57b2de6a","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder8005\\src\\Service\\TimetableService.php":"164c12ad1bd8ed98a39e9f1b7edbf7d4","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder4138\\src\\Service\\TimetableService.php":"e928803ebcce51d7e8a9c1343c9e64d9","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder1857\\src\\Service\\TimetableService.php":"e928803ebcce51d7e8a9c1343c9e64d9","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder8731\\src\\Service\\TimetableService.php":"6bd71fb343c08d8c58363cc9e05059ed","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder7902\\src\\Service\\TimetableService.php":"6bd71fb343c08d8c58363cc9e05059ed","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder1619\\src\\Service\\TimetableService.php":"8c3c8e780fcddac8fb3f986674c2da24","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder3558\\src\\Service\\TimetableService.php":"9950834bf4efae82e7e804e3da9d0dc4","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder5727\\src\\Service\\TimetableService.php":"ebb4f317e764aa6dc77020ccadcb58dd","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder8844\\src\\Service\\TimetableService.php":"8c705267e036ed1f5765c9b18cf2da53","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder9469\\src\\Service\\TimetableService.php":"c01d68f81c89f24da2a140ebd7f86197","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder186\\src\\Service\\TimetableService.php":"bec321c5a62bcb7a781eb77f1bb14293","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder8688\\src\\Service\\TimetableService.php":"acb1c6ad7ab7db8842210516b5633bda","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder7945\\src\\Service\\TimetableService.php":"f832389af822919402bea67f434350fc","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder1827\\src\\Service\\TimetableService.php":"5afa2bc7419655187dea7c71cbde3a22","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder6351\\src\\Service\\TimetableService.php":"ac3f666305cb9c5b25e55b128b46c052","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder7922\\src\\Service\\TimetableService.php":"c8fc636e3d5766e807bffc102cd8f071","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder5547\\src\\Service\\TimetableService.php":"7ec0e44eae3b48a92423036f5c347076","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder3521\\src\\Service\\TimetableService.php":"a8021eb03a842a8c2649147c4c4b9a49","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder7757\\src\\Service\\TimetableService.php":"f553fa411218ed2a811f4837f1f859c8","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder5150\\src\\Service\\TimetableService.php":"a0ace72d666afc05048309c56fe4a3b0","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder4678\\src\\Service\\TimetableService.php":"a0ace72d666afc05048309c56fe4a3b0","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder2960\\src\\Service\\TimetableService.php":"cd82bc7737f3180f85465d40c8232b21","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder7934\\src\\Service\\TimetableService.php":"fd443c3b3f72f95b9ea8f1073f530766","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder3452\\src\\Service\\TimetableService.php":"a0ace72d666afc05048309c56fe4a3b0","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder7756\\src\\Service\\TimetableService.php":"a0ace72d666afc05048309c56fe4a3b0","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder1813\\src\\Service\\TimetableService.php":"a0ace72d666afc05048309c56fe4a3b0","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder7373\\src\\Service\\TimetableService.php":"b92978af0455289525b2d32802617849","C:\\Users\\phplu\\AppData\\Local\\Temp\\PHP CS Fixertemp_folder5406\\src\\Service\\TimetableService.php":"b92978af0455289525b2d32802617849"}} \ No newline at end of file diff --git a/backend/src/Service/ClassesScraperService.php b/backend/src/Service/ClassesScraperService.php index 9ae65af..6dfb1b4 100644 --- a/backend/src/Service/ClassesScraperService.php +++ b/backend/src/Service/ClassesScraperService.php @@ -35,6 +35,18 @@ public function scrapeClasses(): array $classes[] = $classGroup; }); + return $this->removeUslessClasses($classes); + } + + private function removeUslessClasses(array $classes): array + { + $uselessClasses = ['TSST -', 'CPI2 Groupe 3 INT', 'CQPM -']; + foreach ($classes as $key => $class) { + if (in_array($class->getName(), $uselessClasses)) { + unset($classes[$key]); + } + } + return $classes; } } diff --git a/backend/src/Service/TimetableService.php b/backend/src/Service/TimetableService.php index 8268ea1..adbc0ac 100644 --- a/backend/src/Service/TimetableService.php +++ b/backend/src/Service/TimetableService.php @@ -66,6 +66,7 @@ public function parseData(array $parsedData): array $creneaux = $this->defineCreneaux(); $weeks = []; + foreach ($parsedData['GROUPE']['PLAGES']['SEMAINE'] as $week) { $weekSchedule = new WeekSchedule(); $weekSchedule->setId($week['SemId']); @@ -85,11 +86,16 @@ public function parseData(array $parsedData): array foreach ($day['CRENEAU'] as $creneau) { if (isset($creneaux[$creneau['Creneau']])) { + + // Verification si la salle est un array vide car le XML de 3il est nul + if (is_array($creneau['Salles'] ?? '')) { + $creneau['Salles'] = ''; + } + $eventHours = new EventHours(); $eventHours->setStartAt($creneaux[$creneau['Creneau']]['start']); $eventHours->setEndAt($creneaux[$creneau['Creneau']]['end']); $eventHours->setId(random_int(0, 1000000)); - $event = new Event(); $event->setCreneau($creneau['Creneau']); $event->setActivite($creneau['Activite'] ?? 'Pas cours');