Skip to content
This repository was archived by the owner on Aug 7, 2019. It is now read-only.

Commit e303e14

Browse files
committed
Merge pull request #6 from Vektah/master
Add use's for Exception
2 parents 1438208 + c581058 commit e303e14

File tree

6 files changed

+17
-5
lines changed

6 files changed

+17
-5
lines changed

lib/PHPQRCode/QRcode.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
namespace PHPQRCode;
99

10+
use Exception;
11+
1012
class QRcode {
1113

1214
public $version;
@@ -153,4 +155,4 @@ public static function raw($text, $outfile = false, $level = Constants::QR_ECLEV
153155
$enc = QRencode::factory($level, $size, $margin);
154156
return $enc->encodeRAW($text, $outfile);
155157
}
156-
}
158+
}

lib/PHPQRCode/QRencode.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727

2828
namespace PHPQRCode;
2929

30+
use Exception;
31+
3032
class QRencode {
3133

3234
public $casesensitive = true;

lib/PHPQRCode/QRinput.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727

2828
namespace PHPQRCode;
2929

30+
use Exception;
31+
3032
class QRinput {
3133

3234
public $items;

lib/PHPQRCode/QRinputItem.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace PHPQRCode;
44

5+
use Exception;
6+
57
class QRinputItem {
68

79
public $mode;
@@ -241,4 +243,4 @@ public function encodeBitStream($version)
241243
return -1;
242244
}
243245
}
244-
}
246+
}

lib/PHPQRCode/QRrawcode.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
namespace PHPQRCode;
99

10+
use Exception;
11+
1012
class QRrawcode {
1113
public $version;
1214
public $datacode = array();
@@ -112,4 +114,4 @@ public function getCode()
112114

113115
return $ret;
114116
}
115-
}
117+
}

lib/PHPQRCode/QRsplit.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* The following data / specifications are taken from
1414
* "Two dimensional symbol -- QR-code -- Basic Specification" (JIS X0510:2004)
1515
* or
16-
* "Automatic identification and data capture techniques --
16+
* "Automatic identification and data capture techniques --
1717
* QR Code 2005 bar code symbology specification" (ISO/IEC 18004:2006)
1818
*
1919
* This library is free software; you can redistribute it and/or
@@ -33,6 +33,8 @@
3333

3434
namespace PHPQRCode;
3535

36+
use Exception;
37+
3638
class QRsplit {
3739

3840
public $dataStr = '';
@@ -311,4 +313,4 @@ public static function splitStringToQRinput($string, QRinput $input, $modeHint,
311313

312314
return $split->splitString();
313315
}
314-
}
316+
}

0 commit comments

Comments
 (0)