Skip to content

Commit

Permalink
Update namespace to PHPMND.
Browse files Browse the repository at this point in the history
Implements povils#23
  • Loading branch information
padraic committed May 2, 2017
1 parent a6f4d50 commit 0d02d0c
Show file tree
Hide file tree
Showing 23 changed files with 66 additions and 66 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
},
"autoload": {
"psr-4": {
"Povils\\PHPMND\\": "src/"
"PHPMND\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Povils\\PHPMND\\Tests\\": "tests/"
"PHPMND\\Tests\\": "tests/"
}
},
"bin": ["phpmnd"],
Expand Down
2 changes: 1 addition & 1 deletion phpmnd
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ if (false === $loaded) {
}
ini_set('xdebug.max_nesting_level', 10000);

$application = new Povils\PHPMND\Console\Application;
$application = new PHPMND\Console\Application;
$application->run();
4 changes: 2 additions & 2 deletions src/Console/Application.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Povils\PHPMND\Console;
namespace PHPMND\Console;

use Symfony\Component\Console\Application as BaseApplication;
use Symfony\Component\Console\Input\ArrayInput;
Expand All @@ -10,7 +10,7 @@
/**
* Class Application
*
* @package Povils\PHPMND\Console
* @package PHPMND\Console
*/
class Application extends BaseApplication
{
Expand Down
12 changes: 6 additions & 6 deletions src/Console/Command.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace Povils\PHPMND\Console;
namespace PHPMND\Console;

use Povils\PHPMND\Detector;
use Povils\PHPMND\ExtensionFactory;
use Povils\PHPMND\PHPFinder;
use Povils\PHPMND\Printer;
use PHPMND\Detector;
use PHPMND\ExtensionFactory;
use PHPMND\PHPFinder;
use PHPMND\Printer;
use Symfony\Component\Console\Command\Command as BaseCommand;
use Symfony\Component\Console\Helper\ProgressBar;
use Symfony\Component\Console\Input\InputArgument;
Expand All @@ -16,7 +16,7 @@
/**
* Class Command
*
* @package Povils\PHPMND\Console
* @package PHPMND\Console
*/
class Command extends BaseCommand
{
Expand Down
8 changes: 4 additions & 4 deletions src/Console/Option.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

namespace Povils\PHPMND\Console;
namespace PHPMND\Console;

use Povils\PHPMND\Extension\DefaultExtension;
use Povils\PHPMND\Extension\Extension;
use PHPMND\Extension\DefaultExtension;
use PHPMND\Extension\Extension;

/**
* @package Povils\PHPMND\Console
* @package PHPMND\Console
*/
class Option
{
Expand Down
10 changes: 5 additions & 5 deletions src/Detector.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<?php

namespace Povils\PHPMND;
namespace PHPMND;

use PhpParser\NodeTraverser;
use PhpParser\ParserFactory;
use Povils\PHPMND\Console\Option;
use Povils\PHPMND\Visitor\DetectorVisitor;
use Povils\PHPMND\Visitor\ParentConnectorVisitor;
use PHPMND\Console\Option;
use PHPMND\Visitor\DetectorVisitor;
use PHPMND\Visitor\ParentConnectorVisitor;
use Symfony\Component\Finder\SplFileInfo;

/**
* Class Detector
*
* @package Povils\PHPMND
* @package PHPMND
*/
class Detector
{
Expand Down
4 changes: 2 additions & 2 deletions src/Extension/ArgumentExtension.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Povils\PHPMND\Extension;
namespace PHPMND\Extension;

use PhpParser\Node;
use PhpParser\Node\Arg;
Expand All @@ -10,7 +10,7 @@
/**
* Class ArgumentExtension
*
* @package Povils\PHPMND\Extension
* @package PHPMND\Extension
*/
class ArgumentExtension implements FunctionAwareExtension
{
Expand Down
4 changes: 2 additions & 2 deletions src/Extension/ArrayExtension.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

namespace Povils\PHPMND\Extension;
namespace PHPMND\Extension;

use PhpParser\Node;
use PhpParser\Node\Expr\ArrayItem;

/**
* Class ArrayExtension
*
* @package Povils\PHPMND\Extension
* @package PHPMND\Extension
*/
class ArrayExtension implements Extension
{
Expand Down
4 changes: 2 additions & 2 deletions src/Extension/AssignExtension.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

namespace Povils\PHPMND\Extension;
namespace PHPMND\Extension;

use PhpParser\Node;
use PhpParser\Node\Expr\Assign;

/**
* Class AssignExtension
*
* @package Povils\PHPMND\Extension
* @package PHPMND\Extension
*/
class AssignExtension implements Extension
{
Expand Down
2 changes: 1 addition & 1 deletion src/Extension/DefaultExtension.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Povils\PHPMND\Extension;
namespace PHPMND\Extension;

use PhpParser\Node;
use PhpParser\Node\Expr\BinaryOp;
Expand Down
4 changes: 2 additions & 2 deletions src/Extension/DefaultParameterExtension.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

namespace Povils\PHPMND\Extension;
namespace PHPMND\Extension;

use PhpParser\Node;
use PhpParser\Node\Param;

/**
* Class DefaultParameterExtension
*
* @package Povils\PHPMND\Extension
* @package PHPMND\Extension
*/
class DefaultParameterExtension implements Extension
{
Expand Down
2 changes: 1 addition & 1 deletion src/Extension/Extension.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Povils\PHPMND\Extension;
namespace PHPMND\Extension;

use PhpParser\Node;

Expand Down
4 changes: 2 additions & 2 deletions src/Extension/FunctionAwareExtension.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace Povils\PHPMND\Extension;
namespace PHPMND\Extension;

use PhpParser\Node;

/**
* @package Povils\PHPMND\Extension
* @package PHPMND\Extension
*/
interface FunctionAwareExtension extends Extension
{
Expand Down
4 changes: 2 additions & 2 deletions src/Extension/OperationExtension.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Povils\PHPMND\Extension;
namespace PHPMND\Extension;

use PhpParser\Node;
use PhpParser\Node\Expr\BinaryOp\Div;
Expand All @@ -15,7 +15,7 @@
/**
* Class OperationExtension
*
* @package Povils\PHPMND\Extension
* @package PHPMND\Extension
*/
class OperationExtension implements Extension
{
Expand Down
4 changes: 2 additions & 2 deletions src/Extension/PropertyExtension.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

namespace Povils\PHPMND\Extension;
namespace PHPMND\Extension;

use PhpParser\Node;
use PhpParser\Node\Stmt\PropertyProperty;

/**
* Class PropertyExtension
*
* @package Povils\PHPMND\Extension
* @package PHPMND\Extension
*/
class PropertyExtension implements Extension
{
Expand Down
8 changes: 4 additions & 4 deletions src/ExtensionFactory.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

namespace Povils\PHPMND;
namespace PHPMND;

use Povils\PHPMND\Extension\Extension;
use PHPMND\Extension\Extension;

/**
* Class ExtensionFactory
*
* @package Povils\PHPMND
* @package PHPMND
*/
class ExtensionFactory
{
Expand All @@ -19,7 +19,7 @@ class ExtensionFactory
*/
public static function create($extensionName)
{
$extensionClassName = 'Povils\PHPMND\Extension\\' . self::pascalCase($extensionName) . 'Extension';
$extensionClassName = 'PHPMND\Extension\\' . self::pascalCase($extensionName) . 'Extension';
if (false === class_exists($extensionClassName)) {
throw new \Exception(sprintf('Extension "%s" does not exist', $extensionName));
}
Expand Down
4 changes: 2 additions & 2 deletions src/FileReport.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace Povils\PHPMND;
namespace PHPMND;

use Symfony\Component\Finder\SplFileInfo;

/**
* @package Povils\PHPMND
* @package PHPMND
*/
class FileReport
{
Expand Down
4 changes: 2 additions & 2 deletions src/PHPFinder.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

namespace Povils\PHPMND;
namespace PHPMND;

use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Finder\Finder;

/**
* Class Finder
*
* @package Povils\PHPMND
* @package PHPMND
*/
class PHPFinder extends Finder
{
Expand Down
4 changes: 2 additions & 2 deletions src/Printer.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Povils\PHPMND;
namespace PHPMND;

use JakubOnderka\PhpConsoleColor\ConsoleColor;
use JakubOnderka\PhpConsoleHighlighter\Highlighter;
Expand All @@ -9,7 +9,7 @@
/**
* Class Printer
*
* @package Povils\PHPMND
* @package PHPMND
*/
class Printer
{
Expand Down
12 changes: 6 additions & 6 deletions src/Visitor/DetectorVisitor.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Povils\PHPMND\Visitor;
namespace PHPMND\Visitor;

use PhpParser\Node;
use PhpParser\Node\Const_;
Expand All @@ -9,15 +9,15 @@
use PhpParser\Node\Scalar\String_;
use PhpParser\NodeTraverser;
use PhpParser\NodeVisitorAbstract;
use Povils\PHPMND\Console\Option;
use Povils\PHPMND\Extension\Extension;
use Povils\PHPMND\Extension\FunctionAwareExtension;
use Povils\PHPMND\FileReport;
use PHPMND\Console\Option;
use PHPMND\Extension\Extension;
use PHPMND\Extension\FunctionAwareExtension;
use PHPMND\FileReport;

/**
* Class DetectorVisitor
*
* @package Povils\PHPMND
* @package PHPMND
*/
class DetectorVisitor extends NodeVisitorAbstract
{
Expand Down
2 changes: 1 addition & 1 deletion src/Visitor/ParentConnectorVisitor.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Povils\PHPMND\Visitor;
namespace PHPMND\Visitor;

use PhpParser\Node;
use PhpParser\NodeVisitorAbstract;
Expand Down
20 changes: 10 additions & 10 deletions tests/DetectorTest.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<?php

namespace Povils\PHPMND\Tests;
namespace PHPMND\Tests;

use Povils\PHPMND\Console\Option;
use Povils\PHPMND\Detector;
use Povils\PHPMND\Extension\ArgumentExtension;
use Povils\PHPMND\Extension\ArrayExtension;
use Povils\PHPMND\Extension\AssignExtension;
use Povils\PHPMND\Extension\DefaultParameterExtension;
use Povils\PHPMND\Extension\OperationExtension;
use Povils\PHPMND\Extension\PropertyExtension;
use PHPMND\Console\Option;
use PHPMND\Detector;
use PHPMND\Extension\ArgumentExtension;
use PHPMND\Extension\ArrayExtension;
use PHPMND\Extension\AssignExtension;
use PHPMND\Extension\DefaultParameterExtension;
use PHPMND\Extension\OperationExtension;
use PHPMND\Extension\PropertyExtension;

/**
* Class DetectorTest
*
* @package Povils\PHPMND\Tests
* @package PHPMND\Tests
*/
class DetectorTest extends \PHPUnit_Framework_TestCase
{
Expand Down
6 changes: 3 additions & 3 deletions tests/FileReportTest.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

namespace Povils\PHPMND\Tests;
namespace PHPMND\Tests;

use Povils\PHPMND\FileReport;
use PHPMND\FileReport;
use Symfony\Component\Finder\SplFileInfo;

/**
* Class FileReportTest
*
* @package Povils\PHPMND\Tests
* @package PHPMND\Tests
*/
class FileReportTest extends \PHPUnit_Framework_TestCase
{
Expand Down

0 comments on commit 0d02d0c

Please sign in to comment.