diff --git a/examples/custom_output.php b/examples/custom_output.php index e00f2146c..6804fa508 100644 --- a/examples/custom_output.php +++ b/examples/custom_output.php @@ -39,8 +39,8 @@ class MyCustomOutput extends QROutputAbstract{ // invoke the QROutputInterface manually $options = new QROptions([ - 'version' => 5, - 'eccLevel' => QRCode::ECC_L, + 'version' => 5, + 'eccLevel' => QRCode::ECC_L, ]); $qrOutputInterface = new MyCustomOutput($options, (new QRCode($options))->getMatrix('https://www.youtube.com/watch?v=dQw4w9WgXcQ')); diff --git a/examples/html.php b/examples/html.php index 935210efa..46cadd641 100644 --- a/examples/html.php +++ b/examples/html.php @@ -12,10 +12,10 @@ use chillerlan\QRCode\Data\QRMatrix; require_once '../vendor/autoload.php'; $options = new QROptions([ - 'version' => 5, - 'outputType' => QRCode::OUTPUT_MARKUP_HTML, - 'cssClass' => 'qrcode', - 'eccLevel' => QRCode::ECC_L, + 'version' => 5, + 'outputType' => QRCode::OUTPUT_MARKUP_HTML, + 'cssClass' => 'qrcode', + 'eccLevel' => QRCode::ECC_L, 'moduleValues' => [ // finder (QRMatrix::M_FINDER << 8) => '#A71111', // dark (true) diff --git a/examples/imageWithText.php b/examples/imageWithText.php index c366eaaff..c23fed8dc 100644 --- a/examples/imageWithText.php +++ b/examples/imageWithText.php @@ -94,10 +94,10 @@ class QRImageWithText extends QRImage{ $options = new QROptions([ - 'version' => 7, - 'outputType' => QRCode::OUTPUT_IMAGE_PNG, - 'scale' => 3, - 'imageBase64' => false, + 'version' => 7, + 'outputType' => QRCode::OUTPUT_IMAGE_PNG, + 'scale' => 3, + 'imageBase64' => false, ]); diff --git a/examples/qrcode-interactive.php b/examples/qrcode-interactive.php index 93c0d7159..68e074359 100644 --- a/examples/qrcode-interactive.php +++ b/examples/qrcode-interactive.php @@ -79,18 +79,18 @@ try{ $qrcode = '
'.$qrcode.''; } - send_response(['qrcode' => $qrcode]); + sendResponse(['qrcode' => $qrcode]); } // Pokémon exception handler -catch(\Exception $e){ +catch(Exception $e){ header('HTTP/1.1 500 Internal Server Error'); - send_response(['error' => $e->getMessage()]); + sendResponse(['error' => $e->getMessage()]); } /** * @param array $response */ -function send_response(array $response){ +function sendResponse(array $response){ header('Content-type: application/json;charset=utf-8;'); echo json_encode($response); exit; diff --git a/examples/svg.php b/examples/svg.php index da6a5cac4..4e9880109 100644 --- a/examples/svg.php +++ b/examples/svg.php @@ -16,14 +16,14 @@ require_once __DIR__.'/../vendor/autoload.php'; $gzip = true; $options = new QROptions([ - 'version' => 7, - 'outputType' => QRCode::OUTPUT_MARKUP_SVG, - 'imageBase64' => false, - 'eccLevel' => QRCode::ECC_L, + 'version' => 7, + 'outputType' => QRCode::OUTPUT_MARKUP_SVG, + 'imageBase64' => false, + 'eccLevel' => QRCode::ECC_L, 'svgViewBoxSize' => 530, - 'addQuietzone' => true, - 'svgOpacity' => 1.0, - 'svgDefs' => ' + 'addQuietzone' => true, + 'svgOpacity' => 1.0, + 'svgDefs' => '