Skip to content

Commit cb2fff8

Browse files
committed
Finised renaming the library to CSSFromHTMLExtractor
1 parent 65f505b commit cb2fff8

File tree

12 files changed

+26
-26
lines changed

12 files changed

+26
-26
lines changed

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "jandc/page-specific-css",
2+
"name": "jandc/css-from-html-extractor",
33
"type": "library",
4-
"description": "Php library which determines critical css on a per page basis.",
5-
"homepage": "https://github.com/JanDC/page-specific-css",
4+
"description": "Php library which determines which css is used from html snippets.",
5+
"homepage": "https://github.com/JanDC/css-from-html-extractor",
66
"license": "ISC",
77
"authors": [
88
{
@@ -18,7 +18,7 @@
1818
},
1919
"autoload": {
2020
"psr-4": {
21-
"PageSpecificCss\\": "src/"
21+
"CSSFromHTMLExtractor\\": "src/"
2222
}
2323
}
2424
}

src/Css/Processor.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace PageSpecificCss\Css;
3+
namespace CSSFromHTMLExtractor\Css;
44

5-
use PageSpecificCss\Css\Rule\Processor as RuleProcessor;
6-
use PageSpecificCss\Css\Rule\Rule;
5+
use CSSFromHTMLExtractor\Css\Rule\Processor as RuleProcessor;
6+
use CSSFromHTMLExtractor\Css\Rule\Rule;
77

88
class Processor
99
{

src/Css/Property/Processor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace PageSpecificCss\Css\Property;
3+
namespace CSSFromHTMLExtractor\Css\Property;
44

55
use Symfony\Component\CssSelector\Node\Specificity;
66

src/Css/Property/Property.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace PageSpecificCss\Css\Property;
3+
namespace CSSFromHTMLExtractor\Css\Property;
44

55
use Symfony\Component\CssSelector\Node\Specificity;
66

src/Css/Rule/Processor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace PageSpecificCss\Css\Rule;
3+
namespace CSSFromHTMLExtractor\Css\Rule;
44

55
use Sabberworm\CSS\OutputFormat;
66
use Sabberworm\CSS\Parser;
77
use Symfony\Component\CssSelector\Node\Specificity;
8-
use \PageSpecificCss\Css\Property\Processor as PropertyProcessor;
8+
use \CSSFromHTMLExtractor\Css\Property\Processor as PropertyProcessor;
99

1010
class Processor
1111
{

src/Css/Rule/Rule.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
namespace PageSpecificCss\Css\Rule;
3+
namespace CSSFromHTMLExtractor\Css\Rule;
44

5-
use PageSpecificCss\Css\Property\Property;
5+
use CSSFromHTMLExtractor\Css\Property\Property;
66
use Symfony\Component\CssSelector\Node\Specificity;
77

88
final class Rule

src/CssStore.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace PageSpecificCss;
3+
namespace CSSFromHTMLExtractor;
44

5-
use PageSpecificCss\Css\Property\Property;
6-
use PageSpecificCss\Css\Rule\Rule;
5+
use CSSFromHTMLExtractor\Css\Property\Property;
6+
use CSSFromHTMLExtractor\Css\Rule\Rule;
77

88
class CssStore
99
{

src/HtmlStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace PageSpecificCss;
3+
namespace CSSFromHTMLExtractor;
44

55
class HtmlStore
66
{

src/PageSpecificCss.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
22

3-
namespace PageSpecificCss;
3+
namespace CSSFromHTMLExtractor;
44

55
use DOMNodeList;
66
use Exception;
77
use Symfony\Component\CssSelector\CssSelectorConverter;
88
use Symfony\Component\CssSelector\Exception\ExceptionInterface;
9-
use PageSpecificCss\Css\Processor;
10-
use PageSpecificCss\Css\Rule\Rule;
9+
use CSSFromHTMLExtractor\Css\Processor;
10+
use CSSFromHTMLExtractor\Css\Rule\Rule;
1111
use Symfony\Component\CssSelector\Exception\ExpressionErrorException;
1212

1313
class PageSpecificCss

src/Twig/Extension.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace PageSpecificCss\Twig;
3+
namespace CSSFromHTMLExtractor\Twig;
44

5-
use PageSpecificCss\PageSpecificCss;
6-
use PageSpecificCss\Twig\TokenParsers\FoldTokenParser;
5+
use CSSFromHTMLExtractor\PageSpecificCss;
6+
use CSSFromHTMLExtractor\Twig\TokenParsers\FoldTokenParser;
77
use Twig_Extension;
88
use Twig_ExtensionInterface;
99

0 commit comments

Comments
 (0)