Skip to content

Commit 5ef5659

Browse files
committed
Update most URLs to HTTPS
1 parent 727f1ca commit 5ef5659

File tree

10 files changed

+38
-38
lines changed

10 files changed

+38
-38
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"}

lib/Sabberworm/CSS/RuleSet/DeclarationBlock.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function expandShorthands() {
142142
public function createShorthands() {
143143
$this->createBackgroundShorthand();
144144
$this->createDimensionsShorthand();
145-
// border must be shortened after dimensions
145+
// border must be shortened after dimensions
146146
$this->createBorderShorthand();
147147
$this->createFontShorthand();
148148
$this->createListStyleShorthand();
@@ -264,7 +264,7 @@ public function expandFontShorthand() {
264264
if (!isset($aRules['font']))
265265
return;
266266
$oRule = $aRules['font'];
267-
// reset properties to 'normal' per http://www.w3.org/TR/21/fonts.html#font-shorthand
267+
// reset properties to 'normal' per https://www.w3.org/TR/21/fonts.html#font-shorthand
268268
$aFontProperties = array(
269269
'font-style' => 'normal',
270270
'font-variant' => 'normal',
@@ -322,7 +322,7 @@ public function expandFontShorthand() {
322322
* Convert shorthand background declarations
323323
* (e.g. <tt>background: url("chess.png") gray 50% repeat fixed;</tt>)
324324
* into their constituent parts.
325-
* @see http://www.w3.org/TR/21/colors.html#propdef-background
325+
* @see https://www.w3.org/TR/21/colors.html#propdef-background
326326
* */
327327

328328
public function expandBackgroundShorthand() {
@@ -501,7 +501,7 @@ public function createBorderShorthand() {
501501

502502
/*
503503
* Looks for long format CSS dimensional properties
504-
* (margin, padding, border-color, border-style and border-width)
504+
* (margin, padding, border-color, border-style and border-width)
505505
* and converts them into shorthand CSS properties.
506506
* */
507507

@@ -556,7 +556,7 @@ public function createDimensionsShorthand() {
556556
$oNewRule->addValue($aValues['bottom']);
557557
}
558558
} else {
559-
// No sides are equal
559+
// No sides are equal
560560
$oNewRule->addValue($aValues['top']);
561561
$oNewRule->addValue($aValues['left']);
562562
$oNewRule->addValue($aValues['bottom']);
@@ -571,8 +571,8 @@ public function createDimensionsShorthand() {
571571
}
572572

573573
/**
574-
* Looks for long format CSS font properties (e.g. <tt>font-weight</tt>) and
575-
* tries to convert them into a shorthand CSS <tt>font</tt> property.
574+
* Looks for long format CSS font properties (e.g. <tt>font-weight</tt>) and
575+
* tries to convert them into a shorthand CSS <tt>font</tt> property.
576576
* At least font-size AND font-family must be present in order to create a shorthand declaration.
577577
* */
578578
public function createFontShorthand() {

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: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ function testManipulation() {
181181
to {top: 200px;}}
182182
@supports ( (perspective: 10px) or (-moz-perspective: 10px) or (-webkit-perspective: 10px) or (-ms-perspective: 10px) or (-o-perspective: 10px) ) {body {font-family: "Helvetica";}}
183183
@page :pseudo-class {margin: 2in;}
184-
@-moz-document url(http://www.w3.org/),
185-
url-prefix(http://www.w3.org/Style/),
184+
@-moz-document url(https://www.w3.org/),
185+
url-prefix(https://www.w3.org/Style/),
186186
domain(mozilla.org),
187187
regexp("https:.*") {body {color: purple;background: yellow;}}
188188
@media screen and (orientation: landscape) {@-ms-viewport {width: 1024px;height: 768px;}}
@@ -202,8 +202,8 @@ function testManipulation() {
202202
to {top: 200px;}}
203203
@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";}}
204204
@page :pseudo-class {margin: 2in;}
205-
@-moz-document url(http://www.w3.org/),
206-
url-prefix(http://www.w3.org/Style/),
205+
@-moz-document url(https://www.w3.org/),
206+
url-prefix(https://www.w3.org/Style/),
207207
domain(mozilla.org),
208208
regexp("https:.*") {#my_id body {color: purple;background: yellow;}}
209209
@media screen and (orientation: landscape) {@-ms-viewport {width: 1024px;height: 768px;}}
@@ -320,10 +320,10 @@ function testCreateShorthands() {
320320

321321
function testNamespaces() {
322322
$oDoc = $this->parsedStructureForFile('namespaces');
323-
$sExpected = '@namespace toto "http://toto.example.org";
324-
@namespace "http://example.com/foo";
325-
@namespace foo url("http://www.example.com/");
326-
@namespace foo url("http://www.example.com/");
323+
$sExpected = '@namespace toto "https://toto.example.org";
324+
@namespace "https://example.com/foo";
325+
@namespace foo url("https://www.example.com/");
326+
@namespace foo url("https://www.example.com/");
327327
foo|test {gaga: 1;}
328328
|test {gaga: 2;}';
329329
$this->assertSame($sExpected, $oDoc->render());
@@ -397,8 +397,8 @@ function testComments() {
397397

398398
function testUrlInFile() {
399399
$oDoc = $this->parsedStructureForFile('url', Settings::create()->withMultibyteSupport(true));
400-
$sExpected = 'body {background: #fff url("http://somesite.com/images/someimage.gif") repeat top center;}
401-
body {background-url: url("http://somesite.com/images/someimage.gif");}';
400+
$sExpected = 'body {background: #fff url("https://somesite.com/images/someimage.gif") repeat top center;}
401+
body {background-url: url("https://somesite.com/images/someimage.gif");}';
402402
$this->assertSame($sExpected, $oDoc->render());
403403
}
404404

@@ -519,8 +519,8 @@ function testCalcFailure() {
519519

520520
function testUrlInFileMbOff() {
521521
$oDoc = $this->parsedStructureForFile('url', Settings::create()->withMultibyteSupport(false));
522-
$sExpected = 'body {background: #fff url("http://somesite.com/images/someimage.gif") repeat top center;}
523-
body {background-url: url("http://somesite.com/images/someimage.gif");}';
522+
$sExpected = 'body {background: #fff url("https://somesite.com/images/someimage.gif") repeat top center;}
523+
body {background-url: url("https://somesite.com/images/someimage.gif");}';
524524
$this->assertSame($sExpected, $oDoc->render());
525525
}
526526

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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
@charset "utf-8"; /* line 1 */
22

3-
@namespace "http://toto.example.org"; /* line 3 */
3+
@namespace "https://toto.example.org"; /* line 3 */
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: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
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

3-
@namespace toto "http://toto.example.org";
4-
@namespace "http://example.com/foo";
3+
@namespace toto "https://toto.example.org";
4+
@namespace "https://example.com/foo";
55

66

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

1111

1212
foo|test {

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)