This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <body></body> | |
| <script> | |
| (() => { | |
| let counter = 10; | |
| const html = ` | |
| <div style="border-radius:5px; background:#fff; position:fixed; top:50%; left:50%; height:100px; width:200px; margin:-50px -100px; padding:20px; box-shadow:1px 1px 20px 0 rgba(0,0,0,0.75);"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM php:7.0-alpine | |
| RUN apk update | |
| RUN apk add --virtual .build-cache alpine-sdk autoconf dpkg-dev perl dpkg libmagic file re2c | |
| RUN apk add bash openssl curl ca-certificates | |
| RUN apk add libmcrypt-dev libltdl && docker-php-ext-install mcrypt | |
| RUN apk add libxml2-dev && docker-php-ext-install xml | |
| RUN apk add icu icu-dev && docker-php-ext-install intl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php declare(strict_types=1); | |
| namespace App\PhpStan\Reflections\AdditionalReflections; | |
| use PhpParser\Node\Expr\MethodCall; | |
| use PhpParser\Node\Scalar\String_; | |
| use PHPStan\Analyser\Scope; | |
| use PHPStan\Reflection\MethodReflection; | |
| use PHPStan\Type\DynamicMethodReturnTypeExtension; | |
| use PHPStan\Type\FalseBooleanType; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $input1 = $form->addText('default_value_CZK', 'Hodnota v KČ'); | |
| $input2 = $form->addText('default_value_percent', 'Hodnota v %'); | |
| $input1 | |
| ->setType("number") | |
| ->addCondition(\Nette\Application\UI\Form::FILLED) | |
| ->addRule(\Nette\Application\UI\Form::NUMERIC, "%label musí být číselná hodnota") | |
| ->endCondition() | |
| ->addConditionOn($input2, \Nette\Application\UI\Form::BLANK) | |
| ->addRule(\Nette\Application\UI\Form::FILLED, 'Povinný'); |