Skip to content

Commit 6eff481

Browse files
authored
Merge pull request MyIntervals#216 from oliverklee/cleanup/https
Update most URLs to HTTPS
2 parents fe28cec + 1f74939 commit 6eff481

File tree

9 files changed

+23
-23
lines changed

9 files changed

+23
-23
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2011 Raphael Schweikert, http://sabberworm.com/
3+
Copyright (c) 2011 Raphael Schweikert, https://www.sabberworm.com/
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ class Sabberworm\CSS\CSSList\Document#4 (2) {
617617
* [Lullabot](https://github.com/Lullabot) for a patch that allows to know the line number for each parsed token.
618618
* [ju1ius](https://github.com/ju1ius) for the specificity parsing code and the ability to expand/compact shorthand properties.
619619
* [ossinkine](https://github.com/ossinkine) for a 150 time performance boost.
620-
* [GaryJones](https://github.com/GaryJones) for lots of input and [http://css-specificity.info/](http://css-specificity.info/).
620+
* [GaryJones](https://github.com/GaryJones) for lots of input and [https://css-specificity.info/](https://css-specificity.info/).
621621
* [docteurklein](https://github.com/docteurklein) for output formatting and `CSSList->remove()` inspiration.
622622
* [nicolopignatelli](https://github.com/nicolopignatelli) for PSR-0 compatibility.
623623
* [diegoembarcadero](https://github.com/diegoembarcadero) for keyframe at-rule parsing.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "library",
44
"description": "Parser for CSS Files written in PHP",
55
"keywords": ["parser", "css", "stylesheet"],
6-
"homepage": "http://www.sabberworm.com/blog/2010/6/10/php-css-parser",
6+
"homepage": "https://www.sabberworm.com/blog/2010/6/10/php-css-parser",
77
"license": "MIT",
88
"authors": [
99
{"name": "Raphael Schweikert"}

phpunit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<phpunit
22
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.5/phpunit.xsd"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/4.8/phpunit.xsd"
44
bootstrap="tests/bootstrap.php">
55
<testsuites>
66
<testsuite name="Project Test Suite">

tests/Sabberworm/CSS/ParserTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ public function testManipulation()
188188
to {top: 200px;}}
189189
@supports ( (perspective: 10px) or (-moz-perspective: 10px) or (-webkit-perspective: 10px) or (-ms-perspective: 10px) or (-o-perspective: 10px) ) {body {font-family: "Helvetica";}}
190190
@page :pseudo-class {margin: 2in;}
191-
@-moz-document url(http://www.w3.org/),
192-
url-prefix(http://www.w3.org/Style/),
191+
@-moz-document url(https://www.w3.org/),
192+
url-prefix(https://www.w3.org/Style/),
193193
domain(mozilla.org),
194194
regexp("https:.*") {body {color: purple;background: yellow;}}
195195
@media screen and (orientation: landscape) {@-ms-viewport {width: 1024px;height: 768px;}}
@@ -209,8 +209,8 @@ public function testManipulation()
209209
to {top: 200px;}}
210210
@supports ( (perspective: 10px) or (-moz-perspective: 10px) or (-webkit-perspective: 10px) or (-ms-perspective: 10px) or (-o-perspective: 10px) ) {#my_id body {font-family: "Helvetica";}}
211211
@page :pseudo-class {margin: 2in;}
212-
@-moz-document url(http://www.w3.org/),
213-
url-prefix(http://www.w3.org/Style/),
212+
@-moz-document url(https://www.w3.org/),
213+
url-prefix(https://www.w3.org/Style/),
214214
domain(mozilla.org),
215215
regexp("https:.*") {#my_id body {color: purple;background: yellow;}}
216216
@media screen and (orientation: landscape) {@-ms-viewport {width: 1024px;height: 768px;}}
@@ -416,8 +416,8 @@ public function testComments()
416416
public function testUrlInFile()
417417
{
418418
$oDoc = $this->parsedStructureForFile('url', Settings::create()->withMultibyteSupport(true));
419-
$sExpected = 'body {background: #fff url("http://somesite.com/images/someimage.gif") repeat top center;}
420-
body {background-url: url("http://somesite.com/images/someimage.gif");}';
419+
$sExpected = 'body {background: #fff url("https://somesite.com/images/someimage.gif") repeat top center;}
420+
body {background-url: url("https://somesite.com/images/someimage.gif");}';
421421
$this->assertSame($sExpected, $oDoc->render());
422422
}
423423

@@ -553,8 +553,8 @@ public function testCalcFailure()
553553
public function testUrlInFileMbOff()
554554
{
555555
$oDoc = $this->parsedStructureForFile('url', Settings::create()->withMultibyteSupport(false));
556-
$sExpected = 'body {background: #fff url("http://somesite.com/images/someimage.gif") repeat top center;}
557-
body {background-url: url("http://somesite.com/images/someimage.gif");}';
556+
$sExpected = 'body {background: #fff url("https://somesite.com/images/someimage.gif") repeat top center;}
557+
body {background-url: url("https://somesite.com/images/someimage.gif");}';
558558
$this->assertSame($sExpected, $oDoc->render());
559559
}
560560

tests/files/atrules.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@ html, body {
2929
margin:2in;
3030
}
3131

32-
@-moz-document url(http://www.w3.org/),
33-
url-prefix(http://www.w3.org/Style/),
32+
@-moz-document url(https://www.w3.org/),
33+
url-prefix(https://www.w3.org/Style/),
3434
domain(mozilla.org),
3535
regexp("https:.*") {
3636
/* CSS rules here apply to:
37-
+ The page "http://www.w3.org/".
38-
+ Any page whose URL begins with "http://www.w3.org/Style/"
37+
+ The page "https://www.w3.org/".
38+
+ Any page whose URL begins with "https://www.w3.org/Style/"
3939
+ Any page whose URL's host is "mozilla.org" or ends with
4040
".mozilla.org"
4141
+ Any page whose URL starts with "https:" */
42-
42+
4343
/* make the above-mentioned pages really ugly */
4444
body { color: purple; background: yellow; }
4545
}

tests/files/line-numbers.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
@font-face { /* line 5 */
66
font-family: "CrassRoots";
7-
src: url("http://example.com/media/cr.ttf") /* line 7 */
7+
src: url("https://example.com/media/cr.ttf") /* line 7 */
88
}
99

1010

@@ -23,7 +23,7 @@
2323
@IMPORT uRL(test.css); /* line 23 */
2424

2525
body {
26-
background: #FFFFFF url("http://somesite.com/images/someimage.gif") repeat top center; /* line 25 */
26+
background: #FFFFFF url("https://somesite.com/images/someimage.gif") repeat top center; /* line 25 */
2727
color: rgb( /* line 27 */
2828
233, /* line 28 */
2929
100, /* line 29 */

tests/files/namespaces.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
/* From the spec at http://www.w3.org/TR/css3-namespace/ */
1+
/* From the spec at https://www.w3.org/TR/css3-namespace/ */
22

33
@namespace toto "http://toto.example.org";
44
@namespace "http://example.com/foo";
55

66

7-
/* From an introduction at http://www.blooberry.com/indexdot/css/syntax/atrules/namespace.htm */
7+
/* From an introduction at https://www.blooberry.com/indexdot/css/syntax/atrules/namespace.htm */
88
@namespace foo url("http://www.example.com/");
99
@namespace foo url('http://www.example.com/');
1010

tests/files/url.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
body { background: #FFFFFF url("http://somesite.com/images/someimage.gif") repeat top center; }
1+
body { background: #FFFFFF url("https://somesite.com/images/someimage.gif") repeat top center; }
22
body {
3-
background-url: url("http://somesite.com/images/someimage.gif");
3+
background-url: url("https://somesite.com/images/someimage.gif");
44
}

0 commit comments

Comments
 (0)