Skip to content

Commit b08ca7b

Browse files
author
Martin Brecht-Precht
committed
Changed the root namespace and the vendor prefix.
1 parent 7256b58 commit b08ca7b

16 files changed

+150
-129
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2016 Martin Brecht-Precht, Markenwerk GmbH
3+
Copyright (c) 2016 Martin Brecht-Precht, Chroma Experience GmbH
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
<?php
22

3-
namespace QrCodeSuite\QrEncode\Exception;
3+
namespace ChromaX\QrCodeSuite\QrEncode\Exception;
4+
5+
use Exception;
46

57
/**
68
* Class QrEncoderException
79
*
8-
* @package QrCodeSuite\QrEncode\Exception
10+
* @package ChromaX\QrCodeSuite\QrEncode\Exception
911
*/
10-
class QrEncoderException extends \Exception
12+
class QrEncoderException extends Exception
1113
{
1214

1315
}

QrEncode/QrCode/QrCode.php

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

3-
namespace QrCodeSuite\QrEncode\QrCode;
3+
namespace ChromaX\QrCodeSuite\QrEncode\QrCode;
44

55
/**
66
* Class QrCode
77
*
8-
* @package QrCodeSuite\QrEncode
8+
* @package ChromaX\QrCodeSuite\QrEncode
99
*/
1010
class QrCode
1111
{

QrEncode/QrCode/QrCodePoint.php

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

3-
namespace QrCodeSuite\QrEncode\QrCode;
3+
namespace ChromaX\QrCodeSuite\QrEncode\QrCode;
44

55
/**
66
* Class QrCodePoint
77
*
8-
* @package QrCodeSuite\QrEncode
8+
* @package ChromaX\QrCodeSuite\QrEncode
99
*/
1010
class QrCodePoint
1111
{

QrEncode/QrCode/QrCodePointRow.php

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

3-
namespace QrCodeSuite\QrEncode\QrCode;
3+
namespace ChromaX\QrCodeSuite\QrEncode\QrCode;
44

55
/**
66
* Class QrCodePointRow
77
*
8-
* @package QrCodeSuite\QrEncode
8+
* @package ChromaX\QrCodeSuite\QrEncode
99
*/
1010
class QrCodePointRow
1111
{

QrEncode/QrEncoder.php

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

3-
namespace QrCodeSuite\QrEncode;
3+
namespace ChromaX\QrCodeSuite\QrEncode;
44

5-
use QrCodeSuite\QrEncode\Exception\QrEncoderException;
6-
use QrCodeSuite\QrEncode\QrCode\QrCode;
7-
use QrCodeSuite\QrEncode\QrCode\QrCodePointRow;
8-
use QrCodeSuite\QrEncode\QrCode\QrCodePoint;
5+
use ChromaX\QrCodeSuite\QrEncode\Exception\QrEncoderException;
6+
use ChromaX\QrCodeSuite\QrEncode\QrCode\QrCode;
7+
use ChromaX\QrCodeSuite\QrEncode\QrCode\QrCodePointRow;
8+
use ChromaX\QrCodeSuite\QrEncode\QrCode\QrCodePoint;
99

1010
/**
1111
* Class QrEncoder
1212
*
13-
* @package QrCodeSuite\QrEncode
13+
* @package ChromaX\QrCodeSuite\QrEncode
1414
*/
1515
class QrEncoder
1616
{
@@ -85,7 +85,7 @@ public function encodeQrCode($contents)
8585
{
8686
$chars = str_split($contents);
8787
foreach ($chars as $char) {
88-
if (0 == ord($char)) {
88+
if (0 === ord($char)) {
8989
throw new QrEncoderException('Encoding null character failed');
9090
}
9191
}

QrRender/Base/QrCodeRendererInterface.php

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

3-
namespace QrCodeSuite\QrRender\Base;
3+
namespace ChromaX\QrCodeSuite\QrRender\Base;
44

5-
use QrCodeSuite\QrEncode\QrCode\QrCode;
5+
use ChromaX\QrCodeSuite\QrEncode\QrCode\QrCode;
66

77
/**
88
* Interface QrCodeRendererInterface
99
*
10-
* @package QrCodeSuite\QrRender\Base
10+
* @package ChromaX\QrCodeSuite\QrRender\Base
1111
*/
1212
interface QrCodeRendererInterface
1313
{

QrRender/Exception/IoException.php

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

3-
namespace QrCodeSuite\QrRender\Exception;
3+
namespace ChromaX\QrCodeSuite\QrRender\Exception;
4+
5+
use Exception;
46

57
/**
68
* Class IoException
79
*
8-
* @package QrCodeSuite\QrRender\Exception
10+
* @package ChromaX\QrCodeSuite\QrRender\Exception
911
*/
10-
class IoException extends \Exception
12+
class IoException extends Exception
1113
{
1214

1315
}

QrRender/PathFinder/Path.php

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

3-
namespace QrCodeSuite\QrRender\PathFinder;
3+
namespace ChromaX\QrCodeSuite\QrRender\PathFinder;
44

55
/**
66
* Class Path
77
*
8-
* @package QrCodeSuite\QrRender\PathFinder
8+
* @package ChromaX\QrCodeSuite\QrRender\PathFinder
99
*/
1010
class Path
1111
{

QrRender/PathFinder/PathPoint.php

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

3-
namespace QrCodeSuite\QrRender\PathFinder;
3+
namespace ChromaX\QrCodeSuite\QrRender\PathFinder;
44

55
/**
66
* Class PathPoint
77
*
8-
* @package QrCodeSuite\QrRender\PathFinder
8+
* @package ChromaX\QrCodeSuite\QrRender\PathFinder
99
*/
1010
class PathPoint
1111
{

0 commit comments

Comments
 (0)