From 6140c9970312e4d9d8188a1e4129c2eb3a891d7a Mon Sep 17 00:00:00 2001 From: AlexVanderbist Date: Wed, 9 Sep 2020 09:28:08 +0000 Subject: [PATCH] Fix styling --- .php_cs.cache | 1 + tests/SitemapIndexTest.php | 3 ++- tests/SitemapTest.php | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .php_cs.cache diff --git a/.php_cs.cache b/.php_cs.cache new file mode 100644 index 0000000..5248e49 --- /dev/null +++ b/.php_cs.cache @@ -0,0 +1 @@ +{"php":"7.4.7","version":"2.16.4","indent":" ","lineEnding":"\n","rules":{"blank_line_after_namespace":true,"braces":true,"class_definition":true,"constant_case":true,"elseif":true,"function_declaration":true,"indentation_type":true,"line_ending":true,"lowercase_keywords":true,"method_argument_space":{"on_multiline":"ensure_fully_multiline","keep_multiple_spaces_after_comma":true},"no_break_comment":true,"no_closing_tag":true,"no_spaces_after_function_name":true,"no_spaces_inside_parenthesis":true,"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"single_blank_line_at_eof":true,"single_class_element_per_statement":{"elements":["property"]},"single_import_per_statement":true,"single_line_after_imports":true,"switch_case_semicolon_to_colon":true,"switch_case_space":true,"visibility_required":true,"encoding":true,"full_opening_tag":true,"array_syntax":{"syntax":"short"},"ordered_imports":{"sortAlgorithm":"alpha"},"no_unused_imports":true,"not_operator_with_successor_space":true,"trailing_comma_in_multiline_array":true,"phpdoc_scalar":true,"unary_operator_spaces":true,"binary_operator_spaces":true,"blank_line_before_statement":{"statements":["break","continue","declare","return","throw","try"]},"phpdoc_single_line_var_spacing":true,"phpdoc_var_without_name":true},"hashes":{"src\/Crawler\/Profile.php":491304014,"src\/Crawler\/Observer.php":3776578038,"src\/SitemapGenerator.php":551139945,"src\/SitemapServiceProvider.php":4046326413,"src\/Tags\/Tag.php":655113915,"src\/Tags\/Alternate.php":2677822067,"src\/Tags\/Sitemap.php":291541337,"src\/Tags\/Url.php":3654747035,"src\/SitemapIndex.php":2195872423,"src\/Sitemap.php":59941369,"tests\/SitemapIndexTest.php":2799885370,"tests\/AlternateTest.php":1318703542,"tests\/UrlTest.php":3228679757,"tests\/CustomCrawlProfile.php":1103021984,"tests\/__snapshots__\/SitemapTest__an_url_with_an_alternate_can_be_added_to_the_sitemap__1.php":2144182188,"tests\/TestCase.php":2965666986,"tests\/SitemapTest.php":1907794861,"tests\/CrawlProfileTest.php":1435152950,"tests\/SitemapGeneratorTest.php":1773786182}} \ No newline at end of file diff --git a/tests/SitemapIndexTest.php b/tests/SitemapIndexTest.php index 61f3f8d..3001665 100644 --- a/tests/SitemapIndexTest.php +++ b/tests/SitemapIndexTest.php @@ -83,7 +83,8 @@ public function multiple_sitemaps_can_be_added_to_the_index() public function it_can_render_a_sitemaps_with_all_its_set_properties() { $this->index - ->add(Sitemap::create('/sitemap1.xml') + ->add( + Sitemap::create('/sitemap1.xml') ->setLastModificationDate($this->now->subDay()) ); diff --git a/tests/SitemapTest.php b/tests/SitemapTest.php index bb28d8c..3760033 100644 --- a/tests/SitemapTest.php +++ b/tests/SitemapTest.php @@ -104,7 +104,8 @@ public function multiple_urls_can_be_added_to_the_sitemap() public function it_can_render_an_url_with_all_its_set_properties() { $this->sitemap - ->add(Url::create('/home') + ->add( + Url::create('/home') ->setLastModificationDate($this->now->subDay()) ->setChangeFrequency(Url::CHANGE_FREQUENCY_YEARLY) ->setPriority(0.1)