@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | } |
24 | 24 | |
25 | 25 | public static function autoload($className) { |
26 | - if($className === NULL) { |
|
26 | + if ($className === NULL) { |
|
27 | 27 | return; |
28 | 28 | } |
29 | 29 | |
@@ -32,11 +32,11 @@ discard block |
||
32 | 32 | $substr5 = substr($className, 0, 5); |
33 | 33 | |
34 | 34 | if ($substr5 === 'Tiqr_' || $substr5 === 'OATH_') { |
35 | - $file = $self->tiqrPath . DIRECTORY_SEPARATOR . str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php'; |
|
35 | + $file = $self->tiqrPath.DIRECTORY_SEPARATOR.str_replace('_', DIRECTORY_SEPARATOR, $className).'.php'; |
|
36 | 36 | } elseif ($className === 'QRcode') { |
37 | - $file = $self->qrcodePath . DIRECTORY_SEPARATOR . 'qrlib.php'; |
|
37 | + $file = $self->qrcodePath.DIRECTORY_SEPARATOR.'qrlib.php'; |
|
38 | 38 | } elseif ($substr5 === 'Zend_') { |
39 | - $file = $self->zendPath . DIRECTORY_SEPARATOR . str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php'; |
|
39 | + $file = $self->zendPath.DIRECTORY_SEPARATOR.str_replace('_', DIRECTORY_SEPARATOR, $className).'.php'; |
|
40 | 40 | } else { |
41 | 41 | return; |
42 | 42 | } |
@@ -57,34 +57,34 @@ discard block |
||
57 | 57 | if (is_dir($tiqr_path)) { |
58 | 58 | $this->tiqrPath = $tiqr_path; |
59 | 59 | } else { |
60 | - throw new Exception('Directory not found: ' . var_export($tiqr_dir, TRUE)); |
|
60 | + throw new Exception('Directory not found: '.var_export($tiqr_dir, TRUE)); |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | if (isset($options["phpqrcode.path"])) { |
64 | 64 | $qrcode_dir = $options["phpqrcode.path"]; |
65 | 65 | $qrcode_path = realpath($qrcode_dir); |
66 | 66 | } else { |
67 | - $qrcode_dir = dirname(dirname(dirname(__FILE__))) . '/phpqrcode'; |
|
67 | + $qrcode_dir = dirname(dirname(dirname(__FILE__))).'/phpqrcode'; |
|
68 | 68 | $qrcode_path = $qrcode_dir; |
69 | 69 | } |
70 | 70 | |
71 | 71 | if (is_dir($qrcode_path)) { |
72 | 72 | $this->qrcodePath = $qrcode_path; |
73 | 73 | } else { |
74 | - throw new Exception('Directory not found: ' . var_export($qrcode_dir, TRUE)); |
|
74 | + throw new Exception('Directory not found: '.var_export($qrcode_dir, TRUE)); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | if (isset($options["zend.path"])) { |
78 | 78 | $zend_dir = $options["zend.path"]; |
79 | 79 | $zend_path = realpath($zend_dir); |
80 | 80 | } else { |
81 | - $zend_dir = dirname(dirname(dirname(__FILE__))) . "/zend"; |
|
81 | + $zend_dir = dirname(dirname(dirname(__FILE__)))."/zend"; |
|
82 | 82 | $zend_path = $zend_dir; |
83 | 83 | } |
84 | 84 | if (is_dir($zend_path)) { |
85 | 85 | $this->zendPath = $zend_path; |
86 | 86 | } else { |
87 | - throw new Exception('Directory not found: ' . var_export($zend_dir, TRUE)); |
|
87 | + throw new Exception('Directory not found: '.var_export($zend_dir, TRUE)); |
|
88 | 88 | } |
89 | 89 | } |
90 | 90 |