Skip to content

Commit ea7ab6e

Browse files
committed
changed src me
1 parent 58ff866 commit ea7ab6e

33 files changed

+130
-130
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
"phpunit/phpunit": "*"
1616
},
1717
"autoload": {
18-
"psr-0": { "Sabberworm\\CSS": "src" }
18+
"psr-0": { "Mehdirma10\\CSS": "src/" }
1919
}
2020
}

src/Sabberworm/CSS/CSSList/AtRuleBlockList.php renamed to src/Mehdirma10/CSS/CSSList/AtRuleBlockList.php

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

3-
namespace Sabberworm\CSS\CSSList;
3+
namespace Mehdirma10\CSS\CSSList;
44

5-
use Sabberworm\CSS\Property\AtRule;
5+
use Mehdirma10\CSS\Property\AtRule;
66

77
/**
88
* A BlockList constructed by an unknown @-rule. @media rules are rendered into AtRuleBlockList objects.
@@ -27,10 +27,10 @@ public function atRuleArgs() {
2727
}
2828

2929
public function __toString() {
30-
return $this->render(new \Sabberworm\CSS\OutputFormat());
30+
return $this->render(new \Mehdirma10\CSS\OutputFormat());
3131
}
3232

33-
public function render(\Sabberworm\CSS\OutputFormat $oOutputFormat) {
33+
public function render(\Mehdirma10\CSS\OutputFormat $oOutputFormat) {
3434
$sArgs = $this->sArgs;
3535
if($sArgs) {
3636
$sArgs = ' ' . $sArgs;

src/Sabberworm/CSS/CSSList/CSSBlockList.php renamed to src/Mehdirma10/CSS/CSSList/CSSBlockList.php

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

3-
namespace Sabberworm\CSS\CSSList;
3+
namespace Mehdirma10\CSS\CSSList;
44

5-
use Sabberworm\CSS\RuleSet\DeclarationBlock;
6-
use Sabberworm\CSS\RuleSet\RuleSet;
7-
use Sabberworm\CSS\Property\Selector;
8-
use Sabberworm\CSS\Rule\Rule;
9-
use Sabberworm\CSS\Value\ValueList;
10-
use Sabberworm\CSS\Value\CSSFunction;
5+
use Mehdirma10\CSS\RuleSet\DeclarationBlock;
6+
use Mehdirma10\CSS\RuleSet\RuleSet;
7+
use Mehdirma10\CSS\Property\Selector;
8+
use Mehdirma10\CSS\Rule\Rule;
9+
use Mehdirma10\CSS\Value\ValueList;
10+
use Mehdirma10\CSS\Value\CSSFunction;
1111

1212
/**
1313
* A CSSBlockList is a CSSList whose DeclarationBlocks are guaranteed to contain valid declaration blocks or at-rules.

src/Sabberworm/CSS/CSSList/CSSList.php renamed to src/Mehdirma10/CSS/CSSList/CSSList.php

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

3-
namespace Sabberworm\CSS\CSSList;
3+
namespace Mehdirma10\CSS\CSSList;
44

5-
use Sabberworm\CSS\Renderable;
6-
use Sabberworm\CSS\RuleSet\DeclarationBlock;
7-
use Sabberworm\CSS\RuleSet\RuleSet;
8-
use Sabberworm\CSS\Property\Selector;
9-
use Sabberworm\CSS\Comment\Commentable;
5+
use Mehdirma10\CSS\Renderable;
6+
use Mehdirma10\CSS\RuleSet\DeclarationBlock;
7+
use Mehdirma10\CSS\RuleSet\RuleSet;
8+
use Mehdirma10\CSS\Property\Selector;
9+
use Mehdirma10\CSS\Comment\Commentable;
1010

1111
/**
1212
* A CSSList is the most generic container available. Its contents include RuleSet as well as other CSSList objects.
@@ -90,10 +90,10 @@ public function removeDeclarationBlockBySelector($mSelector, $bRemoveAll = false
9090
}
9191

9292
public function __toString() {
93-
return $this->render(new \Sabberworm\CSS\OutputFormat());
93+
return $this->render(new \Mehdirma10\CSS\OutputFormat());
9494
}
9595

96-
public function render(\Sabberworm\CSS\OutputFormat $oOutputFormat) {
96+
public function render(\Mehdirma10\CSS\OutputFormat $oOutputFormat) {
9797
$sResult = '';
9898
$bIsFirst = true;
9999
$oNextLevel = $oOutputFormat;

src/Sabberworm/CSS/CSSList/Document.php renamed to src/Mehdirma10/CSS/CSSList/Document.php

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

3-
namespace Sabberworm\CSS\CSSList;
3+
namespace Mehdirma10\CSS\CSSList;
44

55
/**
66
* The root CSSList of a parsed file. Contains all top-level css contents, mostly declaration blocks, but also any @-rules encountered.
@@ -91,9 +91,9 @@ public function createShorthands() {
9191
}
9292

9393
// Override render() to make format argument optional
94-
public function render(\Sabberworm\CSS\OutputFormat $oOutputFormat = null) {
94+
public function render(\Mehdirma10\CSS\OutputFormat $oOutputFormat = null) {
9595
if($oOutputFormat === null) {
96-
$oOutputFormat = new \Sabberworm\CSS\OutputFormat();
96+
$oOutputFormat = new \Mehdirma10\CSS\OutputFormat();
9797
}
9898
return parent::render($oOutputFormat);
9999
}

src/Sabberworm/CSS/CSSList/KeyFrame.php renamed to src/Mehdirma10/CSS/CSSList/KeyFrame.php

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

3-
namespace Sabberworm\CSS\CSSList;
3+
namespace Mehdirma10\CSS\CSSList;
44

5-
use Sabberworm\CSS\Property\AtRule;
5+
use Mehdirma10\CSS\Property\AtRule;
66

77
class KeyFrame extends CSSList implements AtRule {
88

@@ -32,10 +32,10 @@ public function getAnimationName() {
3232
}
3333

3434
public function __toString() {
35-
return $this->render(new \Sabberworm\CSS\OutputFormat());
35+
return $this->render(new \Mehdirma10\CSS\OutputFormat());
3636
}
3737

38-
public function render(\Sabberworm\CSS\OutputFormat $oOutputFormat) {
38+
public function render(\Mehdirma10\CSS\OutputFormat $oOutputFormat) {
3939
$sResult = "@{$this->vendorKeyFrame} {$this->animationName}{$oOutputFormat->spaceBeforeOpeningBrace()}{";
4040
$sResult .= parent::render($oOutputFormat);
4141
$sResult .= '}';

src/Sabberworm/CSS/Comment/Comment.php renamed to src/Mehdirma10/CSS/Comment/Comment.php

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

3-
namespace Sabberworm\CSS\Comment;
3+
namespace Mehdirma10\CSS\Comment;
44

5-
use Sabberworm\CSS\Renderable;
5+
use Mehdirma10\CSS\Renderable;
66

77
class Comment implements Renderable {
88
protected $iLineNo;
@@ -38,13 +38,13 @@ public function setComment($sComment) {
3838
* @return string
3939
*/
4040
public function __toString() {
41-
return $this->render(new \Sabberworm\CSS\OutputFormat());
41+
return $this->render(new \Mehdirma10\CSS\OutputFormat());
4242
}
4343

4444
/**
4545
* @return string
4646
*/
47-
public function render(\Sabberworm\CSS\OutputFormat $oOutputFormat) {
47+
public function render(\Mehdirma10\CSS\OutputFormat $oOutputFormat) {
4848
return '/*' . $this->sComment . '*/';
4949
}
5050

src/Sabberworm/CSS/Comment/Commentable.php renamed to src/Mehdirma10/CSS/Comment/Commentable.php

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

3-
namespace Sabberworm\CSS\Comment;
3+
namespace Mehdirma10\CSS\Comment;
44

55
interface Commentable {
66

src/Sabberworm/CSS/OutputFormat.php renamed to src/Mehdirma10/CSS/OutputFormat.php

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

3-
namespace Sabberworm\CSS;
3+
namespace Mehdirma10\CSS;
44

5-
use Sabberworm\CSS\Parsing\OutputException;
5+
use Mehdirma10\CSS\Parsing\OutputException;
66

77
class OutputFormat {
88
/**
@@ -103,7 +103,7 @@ public function __call($sMethodName, $aArguments) {
103103
return $this->set(substr($sMethodName, 3), $aArguments[0]);
104104
} else if(strpos($sMethodName, 'get') === 0) {
105105
return $this->get(substr($sMethodName, 3));
106-
} else if(method_exists('\\Sabberworm\\CSS\\OutputFormatter', $sMethodName)) {
106+
} else if(method_exists('\\Mehdirma10\\CSS\\OutputFormatter', $sMethodName)) {
107107
return call_user_func_array(array($this->getFormatter(), $sMethodName), $aArguments);
108108
} else {
109109
throw new \Exception('Unknown OutputFormat method called: '.$sMethodName);
@@ -256,7 +256,7 @@ public function implode($sSeparator, $aValues, $bIncreaseLevel = false) {
256256
} else {
257257
$sResult .= $sSeparator;
258258
}
259-
if($mValue instanceof \Sabberworm\CSS\Renderable) {
259+
if($mValue instanceof \Mehdirma10\CSS\Renderable) {
260260
$sResult .= $mValue->render($oFormat);
261261
} else {
262262
$sResult .= $mValue;

src/Sabberworm/CSS/Parser.php renamed to src/Mehdirma10/CSS/Parser.php

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

3-
namespace Sabberworm\CSS;
4-
5-
use Sabberworm\CSS\CSSList\CSSList;
6-
use Sabberworm\CSS\CSSList\Document;
7-
use Sabberworm\CSS\CSSList\KeyFrame;
8-
use Sabberworm\CSS\Parsing\SourceException;
9-
use Sabberworm\CSS\Property\AtRule;
10-
use Sabberworm\CSS\Property\Import;
11-
use Sabberworm\CSS\Property\Charset;
12-
use Sabberworm\CSS\Property\CSSNamespace;
13-
use Sabberworm\CSS\RuleSet\AtRuleSet;
14-
use Sabberworm\CSS\CSSList\AtRuleBlockList;
15-
use Sabberworm\CSS\RuleSet\DeclarationBlock;
16-
use Sabberworm\CSS\Value\CSSFunction;
17-
use Sabberworm\CSS\Value\RuleValueList;
18-
use Sabberworm\CSS\Value\Size;
19-
use Sabberworm\CSS\Value\Color;
20-
use Sabberworm\CSS\Value\URL;
21-
use Sabberworm\CSS\Value\CSSString;
22-
use Sabberworm\CSS\Rule\Rule;
23-
use Sabberworm\CSS\Parsing\UnexpectedTokenException;
24-
use Sabberworm\CSS\Comment\Comment;
3+
namespace Mehdirma10\CSS;
4+
5+
use Mehdirma10\CSS\CSSList\CSSList;
6+
use Mehdirma10\CSS\CSSList\Document;
7+
use Mehdirma10\CSS\CSSList\KeyFrame;
8+
use Mehdirma10\CSS\Parsing\SourceException;
9+
use Mehdirma10\CSS\Property\AtRule;
10+
use Mehdirma10\CSS\Property\Import;
11+
use Mehdirma10\CSS\Property\Charset;
12+
use Mehdirma10\CSS\Property\CSSNamespace;
13+
use Mehdirma10\CSS\RuleSet\AtRuleSet;
14+
use Mehdirma10\CSS\CSSList\AtRuleBlockList;
15+
use Mehdirma10\CSS\RuleSet\DeclarationBlock;
16+
use Mehdirma10\CSS\Value\CSSFunction;
17+
use Mehdirma10\CSS\Value\RuleValueList;
18+
use Mehdirma10\CSS\Value\Size;
19+
use Mehdirma10\CSS\Value\Color;
20+
use Mehdirma10\CSS\Value\URL;
21+
use Mehdirma10\CSS\Value\CSSString;
22+
use Mehdirma10\CSS\Rule\Rule;
23+
use Mehdirma10\CSS\Parsing\UnexpectedTokenException;
24+
use Mehdirma10\CSS\Comment\Comment;
2525

2626
/**
2727
* Parser class parses CSS from text into a data structure.

src/Sabberworm/CSS/Parsing/OutputException.php renamed to src/Mehdirma10/CSS/Parsing/OutputException.php

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

3-
namespace Sabberworm\CSS\Parsing;
3+
namespace Mehdirma10\CSS\Parsing;
44

55
/**
66
* Thrown if the CSS parsers attempts to print something invalid

src/Sabberworm/CSS/Parsing/SourceException.php renamed to src/Mehdirma10/CSS/Parsing/SourceException.php

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

3-
namespace Sabberworm\CSS\Parsing;
3+
namespace Mehdirma10\CSS\Parsing;
44

55
class SourceException extends \Exception {
66
private $iLineNo;

src/Sabberworm/CSS/Parsing/UnexpectedTokenException.php renamed to src/Mehdirma10/CSS/Parsing/UnexpectedTokenException.php

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

3-
namespace Sabberworm\CSS\Parsing;
3+
namespace Mehdirma10\CSS\Parsing;
44

55
/**
66
* Thrown if the CSS parsers encounters a token it did not expect

src/Sabberworm/CSS/Property/AtRule.php renamed to src/Mehdirma10/CSS/Property/AtRule.php

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

3-
namespace Sabberworm\CSS\Property;
3+
namespace Mehdirma10\CSS\Property;
44

5-
use Sabberworm\CSS\Renderable;
6-
use Sabberworm\CSS\Comment\Commentable;
5+
use Mehdirma10\CSS\Renderable;
6+
use Mehdirma10\CSS\Comment\Commentable;
77

88
interface AtRule extends Renderable, Commentable {
99
const BLOCK_RULES = 'media/document/supports/region-style/font-feature-values';

src/Sabberworm/CSS/Property/CSSNamespace.php renamed to src/Mehdirma10/CSS/Property/CSSNamespace.php

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

3-
namespace Sabberworm\CSS\Property;
3+
namespace Mehdirma10\CSS\Property;
44

55
/**
66
* CSSNamespace represents an @namespace rule.
@@ -26,10 +26,10 @@ public function getLineNo() {
2626
}
2727

2828
public function __toString() {
29-
return $this->render(new \Sabberworm\CSS\OutputFormat());
29+
return $this->render(new \Mehdirma10\CSS\OutputFormat());
3030
}
3131

32-
public function render(\Sabberworm\CSS\OutputFormat $oOutputFormat) {
32+
public function render(\Mehdirma10\CSS\OutputFormat $oOutputFormat) {
3333
return '@namespace '.($this->sPrefix === null ? '' : $this->sPrefix.' ').$this->mUrl->render($oOutputFormat).';';
3434
}
3535

src/Sabberworm/CSS/Property/Charset.php renamed to src/Mehdirma10/CSS/Property/Charset.php

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

3-
namespace Sabberworm\CSS\Property;
3+
namespace Mehdirma10\CSS\Property;
44

55
/**
66
* Class representing an @charset rule.
@@ -37,10 +37,10 @@ public function getCharset() {
3737
}
3838

3939
public function __toString() {
40-
return $this->render(new \Sabberworm\CSS\OutputFormat());
40+
return $this->render(new \Mehdirma10\CSS\OutputFormat());
4141
}
4242

43-
public function render(\Sabberworm\CSS\OutputFormat $oOutputFormat) {
43+
public function render(\Mehdirma10\CSS\OutputFormat $oOutputFormat) {
4444
return "@charset {$this->sCharset->render($oOutputFormat)};";
4545
}
4646

src/Sabberworm/CSS/Property/Import.php renamed to src/Mehdirma10/CSS/Property/Import.php

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

3-
namespace Sabberworm\CSS\Property;
3+
namespace Mehdirma10\CSS\Property;
44

5-
use Sabberworm\CSS\Value\URL;
5+
use Mehdirma10\CSS\Value\URL;
66

77
/**
88
* Class representing an @import rule.
@@ -36,10 +36,10 @@ public function getLocation() {
3636
}
3737

3838
public function __toString() {
39-
return $this->render(new \Sabberworm\CSS\OutputFormat());
39+
return $this->render(new \Mehdirma10\CSS\OutputFormat());
4040
}
4141

42-
public function render(\Sabberworm\CSS\OutputFormat $oOutputFormat) {
42+
public function render(\Mehdirma10\CSS\OutputFormat $oOutputFormat) {
4343
return "@import ".$this->oLocation->render($oOutputFormat).($this->sMediaQuery === null ? '' : ' '.$this->sMediaQuery).';';
4444
}
4545

src/Sabberworm/CSS/Property/Selector.php renamed to src/Mehdirma10/CSS/Property/Selector.php

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

3-
namespace Sabberworm\CSS\Property;
3+
namespace Mehdirma10\CSS\Property;
44

55
/**
66
* Class representing a single CSS selector. Selectors have to be split by the comma prior to being passed into this class.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace Sabberworm\CSS;
3+
namespace Mehdirma10\CSS;
44

55
interface Renderable {
66
public function __toString();
7-
public function render(\Sabberworm\CSS\OutputFormat $oOutputFormat);
7+
public function render(\Mehdirma10\CSS\OutputFormat $oOutputFormat);
88
public function getLineNo();
99
}

src/Sabberworm/CSS/Rule/Rule.php renamed to src/Mehdirma10/CSS/Rule/Rule.php

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

3-
namespace Sabberworm\CSS\Rule;
3+
namespace Mehdirma10\CSS\Rule;
44

5-
use Sabberworm\CSS\Renderable;
6-
use Sabberworm\CSS\Value\RuleValueList;
7-
use Sabberworm\CSS\Value\Value;
8-
use Sabberworm\CSS\Comment\Commentable;
5+
use Mehdirma10\CSS\Renderable;
6+
use Mehdirma10\CSS\Value\RuleValueList;
7+
use Mehdirma10\CSS\Value\Value;
8+
use Mehdirma10\CSS\Comment\Commentable;
99

1010
/**
1111
* RuleSets contains Rule objects which always have a key and a value.
@@ -153,10 +153,10 @@ public function getIsImportant() {
153153
}
154154

155155
public function __toString() {
156-
return $this->render(new \Sabberworm\CSS\OutputFormat());
156+
return $this->render(new \Mehdirma10\CSS\OutputFormat());
157157
}
158158

159-
public function render(\Sabberworm\CSS\OutputFormat $oOutputFormat) {
159+
public function render(\Mehdirma10\CSS\OutputFormat $oOutputFormat) {
160160
$sResult = "{$this->sRule}:{$oOutputFormat->spaceAfterRuleName()}";
161161
if ($this->mValue instanceof Value) { //Can also be a ValueList
162162
$sResult .= $this->mValue->render($oOutputFormat);

0 commit comments

Comments
 (0)