Skip to content

Commit

Permalink
Prepare for GitHub 2
Browse files Browse the repository at this point in the history
  • Loading branch information
shadz3rg committed Oct 13, 2014
1 parent a89eb4d commit a956d52
Show file tree
Hide file tree
Showing 22 changed files with 57 additions and 57 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"name": "shooz/docx",
"description": "Office documents template toolkit.",
"name": "xhrequest/PHPStamp",
"description": "Simple XML templating library",
"require": {
"doctrine/lexer": "dev-master"
},
"authors": [
{
"name": "Gorokhov Oleg",
"name": "Oleg G.",
"email": "[email protected]"
}
],
"autoload": {
"psr-0": { "OfficeML": "src/" }
"psr-0": { "PHPStamp": "src/" }
}
}
4 changes: 0 additions & 4 deletions src/OfficeML/Exception/ExtensionException.php

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace OfficeML\Document;
namespace PHPStamp\Document;

use OfficeML\Exception\InvalidArgumentException;
use OfficeML\Processor\Tag;
use PHPStamp\Exception\InvalidArgumentException;
use PHPStamp\Processor\Tag;

abstract class Document implements DocumentInterface
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace OfficeML\Document;
namespace PHPStamp\Document;

use OfficeML\Exception\InvalidArgumentException;
use OfficeML\Extension\ExtensionInterface;
use OfficeML\Processor\Tag;
use PHPStamp\Exception\InvalidArgumentException;
use PHPStamp\Extension\ExtensionInterface;
use PHPStamp\Processor\Tag;

interface DocumentInterface
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace OfficeML\Document;
namespace PHPStamp\Document;

use OfficeML\Document\WordDocument\Cleanup;
use OfficeML\Exception\InvalidArgumentException;
use OfficeML\Processor\Tag;
use PHPStamp\Document\WordDocument\Cleanup;
use PHPStamp\Exception\InvalidArgumentException;
use PHPStamp\Processor\Tag;

/**
* @link http:https://msdn.microsoft.com/ru-ru/library/office/gg278327(v=office.15).aspx
Expand Down Expand Up @@ -70,7 +70,7 @@ public function cleanup(\DOMDocument $template)
*/
public function getExpression($id, Tag $tag)
{
$className = 'OfficeML\\Document\\WordDocument\\Extension\\' . ucfirst($id);
$className = 'PHPStamp\\Document\\WordDocument\\Extension\\' . ucfirst($id);

if (class_exists($className) === false) {
throw new InvalidArgumentException('Class by id ' . $id . ' not found.');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace OfficeML\Document\WordDocument;
namespace PHPStamp\Document\WordDocument;

use OfficeML\XMLHelper;
use PHPStamp\XMLHelper;

class Cleanup extends XMLHelper
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace OfficeML\Document\WordDocument\Extension;
namespace PHPStamp\Document\WordDocument\Extension;

use OfficeML\Exception\ExtensionException;
use OfficeML\Extension\Extension;
use OfficeML\Processor;
use OfficeML\XMLHelper;
use PHPStamp\Exception\ExtensionException;
use PHPStamp\Extension\Extension;
use PHPStamp\Processor;
use PHPStamp\XMLHelper;

class Cell extends Extension
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace OfficeML\Document\WordDocument\Extension;
namespace PHPStamp\Document\WordDocument\Extension;

use OfficeML\Exception\ExtensionException;
use OfficeML\Extension\Extension;
use OfficeML\Processor;
use OfficeML\XMLHelper;
use PHPStamp\Exception\ExtensionException;
use PHPStamp\Extension\Extension;
use PHPStamp\Processor;
use PHPStamp\XMLHelper;

class ListItem extends Extension
{
Expand Down
4 changes: 4 additions & 0 deletions src/PHPStamp/Exception/ExtensionException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?php
namespace PHPStamp\Exception;

class ExtensionException extends \Exception {}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

namespace OfficeML\Exception;
namespace PHPStamp\Exception;

class InvalidArgumentException extends \InvalidArgumentException {}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Time: 13:16
*/

namespace OfficeML\Exception;
namespace PHPStamp\Exception;


class ParsingException extends \Exception {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace OfficeML\Exception;
namespace PHPStamp\Exception;

class ProcessorException extends \Exception {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace OfficeML\Extension;
namespace PHPStamp\Extension;

use OfficeML\Processor\Tag;
use PHPStamp\Processor\Tag;

abstract class Extension implements ExtensionInterface
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace OfficeML\Extension;
namespace PHPStamp\Extension;

use OfficeML\Processor\Tag;
use PHPStamp\Processor\Tag;

interface ExtensionInterface
{
Expand Down
4 changes: 2 additions & 2 deletions src/OfficeML/Processor.php → src/PHPStamp/Processor.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace OfficeML;
namespace PHPStamp;

use OfficeML\Processor\Tag;
use PHPStamp\Processor\Tag;

class Processor
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace OfficeML\Processor;
namespace PHPStamp\Processor;

use Doctrine\Common\Lexer\AbstractLexer;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Time: 14:52
*/

namespace OfficeML\Processor;
namespace PHPStamp\Processor;


class Tag
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace OfficeML\Processor;
namespace PHPStamp\Processor;

use OfficeML\Exception\ParsingException;
use OfficeML\Exception\ProcessorException;
use PHPStamp\Exception\ParsingException;
use PHPStamp\Exception\ProcessorException;

class TagMapper
{
Expand Down
6 changes: 3 additions & 3 deletions src/OfficeML/Result.php → src/PHPStamp/Result.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace OfficeML;
namespace PHPStamp;

use OfficeML\Document\Document;
use OfficeML\Document\DocumentInterface;
use PHPStamp\Document\Document;
use PHPStamp\Document\DocumentInterface;

class Result
{
Expand Down
8 changes: 4 additions & 4 deletions src/OfficeML/Templator.php → src/PHPStamp/Templator.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace OfficeML;
namespace PHPStamp;

use OfficeML\Document\DocumentInterface;
use OfficeML\Processor\Lexer;
use OfficeML\Processor\TagMapper;
use PHPStamp\Document\DocumentInterface;
use PHPStamp\Processor\Lexer;
use PHPStamp\Processor\TagMapper;

class Templator
{
Expand Down
4 changes: 2 additions & 2 deletions src/OfficeML/XMLHelper.php → src/PHPStamp/XMLHelper.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace OfficeML;
namespace PHPStamp;

use OfficeML\Exception\ParsingException;
use PHPStamp\Exception\ParsingException;

class XMLHelper
{
Expand Down
4 changes: 2 additions & 2 deletions tests/TagMapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class TagMapperTest extends \PHPUnit_Framework_TestCase
public function it_parse_path_correctly()
{
$method = new \ReflectionMethod(
'OfficeML\Processor\TagMapper', 'parsePath'
'PHPStamp\Processor\TagMapper', 'parsePath'
);
$method->setAccessible(true);

Expand Down Expand Up @@ -41,7 +41,7 @@ public function it_parse_path_correctly()
// case 3
$pathString = 'root-child';
$lexer->setInput($pathString);
$this->setExpectedException('OfficeML\Exception\ProcessorException');
$this->setExpectedException('PHPStamp\Exception\ProcessorException');
$result = $method->invoke(new TagMapper, $lexer);
}

Expand Down

0 comments on commit a956d52

Please sign in to comment.