Skip to content

Commit 1fcb031

Browse files
committed
Update doc blocks
1 parent 17080b8 commit 1fcb031

22 files changed

+54
-33
lines changed

scss.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
include_once __DIR__ . '/src/Colors.php';
1010
include_once __DIR__ . '/src/Compiler.php';
1111
include_once __DIR__ . '/src/Compiler/Environment.php';
12-
include_once __DIR__ . '/src/Exception/CompilerException.php';
12+
include_once __DIR__ . '/src/Exception/CompileException.php';
1313
include_once __DIR__ . '/src/Exception/ParseException.php';
1414
include_once __DIR__ . '/src/Formatter.php';
1515
include_once __DIR__ . '/src/Formatter/Compact.php';

src/Base/Range.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Leafo\ScssPhp\Base;
1313

1414
/**
15-
* Range class
15+
* Range
1616
*
1717
* @author Anthon Pang <anthon.pang@gmail.com>
1818
*/

src/Block.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Leafo\ScssPhp;
1313

1414
/**
15-
* SCSS block
15+
* Block
1616
*
1717
* @author Anthon Pang <anthon.pang@gmail.com>
1818
*/

src/Compiler.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use Leafo\ScssPhp\Block;
1616
use Leafo\ScssPhp\Colors;
1717
use Leafo\ScssPhp\Compiler\Environment;
18-
use Leafo\ScssPhp\Exception\CompilerException;
18+
use Leafo\ScssPhp\Exception\CompileException;
1919
use Leafo\ScssPhp\Formatter\OutputBlock;
2020
use Leafo\ScssPhp\Node;
2121
use Leafo\ScssPhp\Type;
@@ -3210,8 +3210,7 @@ public function findImport($url)
32103210
*
32113211
* @param string $msg Message with optional sprintf()-style vararg parameters
32123212
*
3213-
* @throws \Leafo\ScssPhp\Exception\CompilerException
3214-
* @throws \Leafo\ScssPhp\Exception\ParseException
3213+
* @throws \Leafo\ScssPhp\Exception\CompileException
32153214
*/
32163215
public function throwError($msg)
32173216
{
@@ -3222,7 +3221,7 @@ public function throwError($msg)
32223221
$line = $this->sourceLine;
32233222
$msg = "$msg: line: $line";
32243223

3225-
throw new CompilerException($msg);
3224+
throw new CompileException($msg);
32263225
}
32273226

32283227
/**

src/Compiler/Environment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Leafo\ScssPhp\Block;
1515

1616
/**
17-
* SCSS compiler environment
17+
* Compiler environment
1818
*
1919
* @author Anthon Pang <anthon.pang@gmail.com>
2020
*/

src/Exception/CompileException.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
/**
3+
* SCSSPHP
4+
*
5+
* @copyright 2012-2015 Leaf Corcoran
6+
*
7+
* @license http://opensource.org/licenses/MIT MIT
8+
*
9+
* @link http://leafo.github.io/scssphp
10+
*/
11+
12+
namespace Leafo\ScssPhp\Exception;
13+
14+
/**
15+
* Compiler exception
16+
*
17+
* @author Oleksandr Savchenko <traveltino@gmail.com>
18+
*/
19+
class CompileException extends \Exception
20+
{
21+
}

src/Exception/CompilerException.php

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/Exception/ParseException.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
<?php
2+
/**
3+
* SCSSPHP
4+
*
5+
* @copyright 2012-2015 Leaf Corcoran
6+
*
7+
* @license http://opensource.org/licenses/MIT MIT
8+
*
9+
* @link http://leafo.github.io/scssphp
10+
*/
211

312
namespace Leafo\ScssPhp\Exception;
413

514
/**
6-
* SCSS Parse Exceptions
15+
* Parse Exception
16+
*
17+
* @author Oleksandr Savchenko <traveltino@gmail.com>
718
*/
819
class ParseException extends \Exception
920
{

src/Formatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Leafo\ScssPhp\Formatter\OutputBlock;
1515

1616
/**
17-
* SCSS base formatter
17+
* Base formatter
1818
*
1919
* @author Leaf Corcoran <leafot@gmail.com>
2020
*/

src/Formatter/Compact.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Leafo\ScssPhp\Formatter;
1515

1616
/**
17-
* SCSS compact formatter
17+
* Compact formatter
1818
*
1919
* @author Leaf Corcoran <leafot@gmail.com>
2020
*/

0 commit comments

Comments
 (0)