Skip to content

Commit

Permalink
Shorten vendor namespace to "SVG\"
Browse files Browse the repository at this point in the history
  • Loading branch information
meyfa committed Jul 29, 2017
1 parent ae8650a commit cde475b
Show file tree
Hide file tree
Showing 36 changed files with 99 additions and 99 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ header and echoes it:
```php
<?php

use JangoBrick\SVG\SVGImage;
use JangoBrick\SVG\Nodes\Shapes\SVGRect;
use SVG\SVGImage;
use SVG\Nodes\Shapes\SVGRect;

// image with 100x100 viewport
$image = new SVGImage(100, 100);
Expand All @@ -100,8 +100,8 @@ on it. Example:
```php
<?php

use JangoBrick\SVG\SVGImage;
use JangoBrick\SVG\Nodes\Shapes\SVGCircle;
use SVG\SVGImage;
use SVG\Nodes\Shapes\SVGCircle;

$image = new SVGImage(100, 100);
$doc = $image->getDocument();
Expand Down Expand Up @@ -129,7 +129,7 @@ from a string, moves the contained rectangle and echoes the new SVG:
```php
<?php

use JangoBrick\SVG\SVGImage;
use SVG\SVGImage;

$svg = '<svg width="100" height="100">';
$svg .= '<rect width="50" height="50" fill="#00F" />';
Expand Down
2 changes: 1 addition & 1 deletion autoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
spl_autoload_register(function ($class) {

// project-specific namespace prefix
$prefix = 'JangoBrick\\SVG\\';
$prefix = 'SVG\\';

// base directory for the namespace prefix
$base_dir = __DIR__ . '/src/';
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"autoload": {
"psr-4": {
"JangoBrick\\SVG\\": "src/"
"SVG\\": "src/"
}
}
}
6 changes: 3 additions & 3 deletions src/Nodes/Embedded/SVGImageElement.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace JangoBrick\SVG\Nodes\Embedded;
namespace SVG\Nodes\Embedded;

use JangoBrick\SVG\Nodes\SVGNode;
use JangoBrick\SVG\Rasterization\SVGRasterizer;
use SVG\Nodes\SVGNode;
use SVG\Rasterization\SVGRasterizer;

/**
* Represents the SVG tag 'image'.
Expand Down
6 changes: 3 additions & 3 deletions src/Nodes/SVGNode.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace JangoBrick\SVG\Nodes;
namespace SVG\Nodes;

use JangoBrick\SVG\Rasterization\SVGRasterizer;
use JangoBrick\SVG\Reading\SVGAttrParser;
use SVG\Rasterization\SVGRasterizer;
use SVG\Reading\SVGAttrParser;

/**
* Represents a single element inside an SVG image (in other words, an XML tag).
Expand Down
8 changes: 4 additions & 4 deletions src/Nodes/SVGNodeContainer.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace JangoBrick\SVG\Nodes;
namespace SVG\Nodes;

use JangoBrick\SVG\Nodes\Structures\SVGStyle;
use JangoBrick\SVG\Rasterization\SVGRasterizer;
use JangoBrick\SVG\Utilities\SVGStyleParser;
use SVG\Nodes\Structures\SVGStyle;
use SVG\Rasterization\SVGRasterizer;
use SVG\Utilities\SVGStyleParser;

/**
* Represents an SVG image element that contains child elements.
Expand Down
6 changes: 3 additions & 3 deletions src/Nodes/Shapes/SVGCircle.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace JangoBrick\SVG\Nodes\Shapes;
namespace SVG\Nodes\Shapes;

use JangoBrick\SVG\Nodes\SVGNode;
use JangoBrick\SVG\Rasterization\SVGRasterizer;
use SVG\Nodes\SVGNode;
use SVG\Rasterization\SVGRasterizer;

/**
* Represents the SVG tag 'circle'.
Expand Down
6 changes: 3 additions & 3 deletions src/Nodes/Shapes/SVGEllipse.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace JangoBrick\SVG\Nodes\Shapes;
namespace SVG\Nodes\Shapes;

use JangoBrick\SVG\Nodes\SVGNode;
use JangoBrick\SVG\Rasterization\SVGRasterizer;
use SVG\Nodes\SVGNode;
use SVG\Rasterization\SVGRasterizer;

/**
* Represents the SVG tag 'ellipse'.
Expand Down
6 changes: 3 additions & 3 deletions src/Nodes/Shapes/SVGLine.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace JangoBrick\SVG\Nodes\Shapes;
namespace SVG\Nodes\Shapes;

use JangoBrick\SVG\Nodes\SVGNode;
use JangoBrick\SVG\Rasterization\SVGRasterizer;
use SVG\Nodes\SVGNode;
use SVG\Rasterization\SVGRasterizer;

/**
* Represents the SVG tag 'line'.
Expand Down
6 changes: 3 additions & 3 deletions src/Nodes/Shapes/SVGPath.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace JangoBrick\SVG\Nodes\Shapes;
namespace SVG\Nodes\Shapes;

use JangoBrick\SVG\Nodes\SVGNode;
use JangoBrick\SVG\Rasterization\SVGRasterizer;
use SVG\Nodes\SVGNode;
use SVG\Rasterization\SVGRasterizer;

/**
* Represents the SVG tag 'path'.
Expand Down
4 changes: 2 additions & 2 deletions src/Nodes/Shapes/SVGPolygon.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace JangoBrick\SVG\Nodes\Shapes;
namespace SVG\Nodes\Shapes;

use JangoBrick\SVG\Rasterization\SVGRasterizer;
use SVG\Rasterization\SVGRasterizer;

/**
* Represents the SVG tag 'polygon'.
Expand Down
4 changes: 2 additions & 2 deletions src/Nodes/Shapes/SVGPolygonalShape.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace JangoBrick\SVG\Nodes\Shapes;
namespace SVG\Nodes\Shapes;

use JangoBrick\SVG\Nodes\SVGNode;
use SVG\Nodes\SVGNode;

/**
* This is the base class for polygons and polylines.
Expand Down
4 changes: 2 additions & 2 deletions src/Nodes/Shapes/SVGPolyline.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace JangoBrick\SVG\Nodes\Shapes;
namespace SVG\Nodes\Shapes;

use JangoBrick\SVG\Rasterization\SVGRasterizer;
use SVG\Rasterization\SVGRasterizer;

/**
* Represents the SVG tag 'polyline'.
Expand Down
6 changes: 3 additions & 3 deletions src/Nodes/Shapes/SVGRect.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace JangoBrick\SVG\Nodes\Shapes;
namespace SVG\Nodes\Shapes;

use JangoBrick\SVG\Nodes\SVGNode;
use JangoBrick\SVG\Rasterization\SVGRasterizer;
use SVG\Nodes\SVGNode;
use SVG\Rasterization\SVGRasterizer;

/**
* Represents the SVG tag 'rect'.
Expand Down
6 changes: 3 additions & 3 deletions src/Nodes/Structures/SVGDocumentFragment.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace JangoBrick\SVG\Nodes\Structures;
namespace SVG\Nodes\Structures;

use JangoBrick\SVG\Nodes\SVGNodeContainer;
use JangoBrick\SVG\Rasterization\SVGRasterizer;
use SVG\Nodes\SVGNodeContainer;
use SVG\Rasterization\SVGRasterizer;

/**
* Represents the SVG tag 'svg'. This is the root node for every image.
Expand Down
4 changes: 2 additions & 2 deletions src/Nodes/Structures/SVGGroup.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace JangoBrick\SVG\Nodes\Structures;
namespace SVG\Nodes\Structures;

use JangoBrick\SVG\Nodes\SVGNodeContainer;
use SVG\Nodes\SVGNodeContainer;

/**
* Represents the SVG tag 'g'.
Expand Down
6 changes: 3 additions & 3 deletions src/Nodes/Structures/SVGStyle.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
namespace JangoBrick\SVG\Nodes\Structures;
namespace SVG\Nodes\Structures;


use JangoBrick\SVG\Nodes\SVGNode;
use JangoBrick\SVG\Rasterization\SVGRasterizer;
use SVG\Nodes\SVGNode;
use SVG\Rasterization\SVGRasterizer;

/**
* Represents the SVG tag 'style'.
Expand Down
2 changes: 1 addition & 1 deletion src/Rasterization/Path/SVGArcApproximator.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace JangoBrick\SVG\Rasterization\Path;
namespace SVG\Rasterization\Path;

/**
* This class can approximate elliptical arc segments by calculating a series of
Expand Down
2 changes: 1 addition & 1 deletion src/Rasterization/Path/SVGBezierApproximator.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace JangoBrick\SVG\Rasterization\Path;
namespace SVG\Rasterization\Path;

/**
* This class can approximate quadratic and cubic Bézier curves by calculating
Expand Down
2 changes: 1 addition & 1 deletion src/Rasterization/Path/SVGPathApproximator.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace JangoBrick\SVG\Rasterization\Path;
namespace SVG\Rasterization\Path;

/**
* This class can trace a path by converting its commands into a series of
Expand Down
2 changes: 1 addition & 1 deletion src/Rasterization/Path/SVGPathParser.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace JangoBrick\SVG\Rasterization\Path;
namespace SVG\Rasterization\Path;

/**
* This class can convert SVG path description strings into arrays of distinct
Expand Down
2 changes: 1 addition & 1 deletion src/Rasterization/Path/SVGPolygonBuilder.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace JangoBrick\SVG\Rasterization\Path;
namespace SVG\Rasterization\Path;

/**
* This is a helper class for simple polygon construction through sequentially
Expand Down
4 changes: 2 additions & 2 deletions src/Rasterization/Renderers/SVGEllipseRenderer.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace JangoBrick\SVG\Rasterization\Renderers;
namespace SVG\Rasterization\Renderers;

use JangoBrick\SVG\Rasterization\SVGRasterizer;
use SVG\Rasterization\SVGRasterizer;

/**
* This renderer can draw ellipses (and circles).
Expand Down
6 changes: 3 additions & 3 deletions src/Rasterization/Renderers/SVGImageRenderer.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace JangoBrick\SVG\Rasterization\Renderers;
namespace SVG\Rasterization\Renderers;

use JangoBrick\SVG\Nodes\SVGNode;
use JangoBrick\SVG\Rasterization\SVGRasterizer;
use SVG\Nodes\SVGNode;
use SVG\Rasterization\SVGRasterizer;

/**
* This renderer can draw referenced images (from <image> tags).
Expand Down
4 changes: 2 additions & 2 deletions src/Rasterization/Renderers/SVGLineRenderer.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace JangoBrick\SVG\Rasterization\Renderers;
namespace SVG\Rasterization\Renderers;

use JangoBrick\SVG\Rasterization\SVGRasterizer;
use SVG\Rasterization\SVGRasterizer;

/**
* This renderer can draw straight lines. Filling is not supported.
Expand Down
4 changes: 2 additions & 2 deletions src/Rasterization/Renderers/SVGPolygonRenderer.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace JangoBrick\SVG\Rasterization\Renderers;
namespace SVG\Rasterization\Renderers;

use JangoBrick\SVG\Rasterization\SVGRasterizer;
use SVG\Rasterization\SVGRasterizer;

/**
* This renderer can draw polygons and polylines.
Expand Down
4 changes: 2 additions & 2 deletions src/Rasterization/Renderers/SVGRectRenderer.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace JangoBrick\SVG\Rasterization\Renderers;
namespace SVG\Rasterization\Renderers;

use JangoBrick\SVG\Rasterization\SVGRasterizer;
use SVG\Rasterization\SVGRasterizer;

/**
* This renderer can draw rectangles.
Expand Down
8 changes: 4 additions & 4 deletions src/Rasterization/Renderers/SVGRenderer.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace JangoBrick\SVG\Rasterization\Renderers;
namespace SVG\Rasterization\Renderers;

use JangoBrick\SVG\SVG;
use JangoBrick\SVG\Nodes\SVGNode;
use JangoBrick\SVG\Rasterization\SVGRasterizer;
use SVG\SVG;
use SVG\Nodes\SVGNode;
use SVG\Rasterization\SVGRasterizer;

/**
* This is the base class for all shape renderer instances.
Expand Down
6 changes: 3 additions & 3 deletions src/Rasterization/SVGRasterizer.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace JangoBrick\SVG\Rasterization;
namespace SVG\Rasterization;

use JangoBrick\SVG\SVG;
use JangoBrick\SVG\Nodes\SVGNode;
use SVG\SVG;
use SVG\Nodes\SVGNode;

/**
* This class is the main entry point for the rasterization process.
Expand Down
2 changes: 1 addition & 1 deletion src/Reading/SVGAttrParser.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace JangoBrick\SVG\Reading;
namespace SVG\Reading;


/**
Expand Down
Loading

0 comments on commit cde475b

Please sign in to comment.