Skip to content

Commit 4a76916

Browse files
committed
Nette\Utils\PhpGenerator renamed to Nette\PhpGenerator (BC break)
1 parent c31213c commit 4a76916

18 files changed

+28
-28
lines changed

src/PhpGenerator/ClassType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* the file license.txt that was distributed with this source code.
1010
*/
1111

12-
namespace Nette\Utils\PhpGenerator;
12+
namespace Nette\PhpGenerator;
1313

1414
use Nette,
1515
Nette\Utils\Strings;

src/PhpGenerator/Helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* the file license.txt that was distributed with this source code.
1010
*/
1111

12-
namespace Nette\Utils\PhpGenerator;
12+
namespace Nette\PhpGenerator;
1313

1414
use Nette;
1515

src/PhpGenerator/Method.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* the file license.txt that was distributed with this source code.
1010
*/
1111

12-
namespace Nette\Utils\PhpGenerator;
12+
namespace Nette\PhpGenerator;
1313

1414
use Nette;
1515

src/PhpGenerator/Parameter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* the file license.txt that was distributed with this source code.
1010
*/
1111

12-
namespace Nette\Utils\PhpGenerator;
12+
namespace Nette\PhpGenerator;
1313

1414
use Nette;
1515

src/PhpGenerator/PhpLiteral.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* the file license.txt that was distributed with this source code.
1010
*/
1111

12-
namespace Nette\Utils\PhpGenerator;
12+
namespace Nette\PhpGenerator;
1313

1414
use Nette;
1515

src/PhpGenerator/Property.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* the file license.txt that was distributed with this source code.
1010
*/
1111

12-
namespace Nette\Utils\PhpGenerator;
12+
namespace Nette\PhpGenerator;
1313

1414
use Nette;
1515

tests/PhpGenerator/PhpGenerator.class.phpt renamed to tests/PhpGenerator/class.phpt

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

33
/**
4-
* Test: Nette\Utils\PhpGenerator for classes.
4+
* Test: Nette\PhpGenerator for classes.
55
*
66
* @author David Grudl
77
* @package Nette\Utils
88
*/
99

10-
use Nette\Utils\PhpGenerator\ClassType,
11-
Nette\Utils\PhpGenerator\PhpLiteral;
10+
use Nette\PhpGenerator\ClassType,
11+
Nette\PhpGenerator\PhpLiteral;
1212

1313

1414

@@ -64,4 +64,4 @@ $method->addParameter('res', NULL)
6464
->setReference(TRUE)
6565
->setTypeHint('array');
6666

67-
Assert::match(file_get_contents(__DIR__ . '/PhpGenerator.class.expect'), (string) $class);
67+
Assert::match(file_get_contents(__DIR__ . '/class.expect'), (string) $class);

tests/PhpGenerator/PhpGenerator.closure.phpt renamed to tests/PhpGenerator/closure.phpt

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

33
/**
4-
* Test: Nette\Utils\PhpGenerator & closure.
4+
* Test: Nette\PhpGenerator & closure.
55
*
66
* @author David Grudl
77
* @package Nette\Utils
88
*/
99

10-
use Nette\Utils\PhpGenerator\Method;
10+
use Nette\PhpGenerator\Method;
1111

1212

1313

@@ -26,4 +26,4 @@ $function->addUse('this');
2626
$function->addUse('vars')
2727
->setReference(TRUE);
2828

29-
Assert::match(file_get_contents(__DIR__ . '/PhpGenerator.closure.expect'), (string) $function);
29+
Assert::match(file_get_contents(__DIR__ . '/closure.expect'), (string) $function);

0 commit comments

Comments
 (0)