#PHP getter method
/**
* Getter of $${PARAM_NAME}
*
* @return ${TYPE_HINT}
*/
#if (${TYPE_HINT} == "bool" || ${TYPE_HINT} == "boolean")
public ${STATIC} function ${PARAM_NAME}()
| Set-Alias -Name php -Value \wamp64\bin\php\php7.4.26\php |
| #!/bin/bash | |
| chrome_version=$(cat <&0 | grep -o '[[:digit:]]*\.[[:digit:]]*\.[[:digit:]]*') | |
| wget -O- -q "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$chrome_version" | grep -o '[[:digit:]]*\.[[:digit:]]*\.[[:digit:]]*\.[[:digit:]]*' |
| function killMe(event) { | |
| if (event.data === 'kill_me') { | |
| event.source.close(); | |
| } | |
| } | |
| if (window.addEventListener){ | |
| addEventListener('message', killMe, false); | |
| } else { |
| function delegateFormInNewWindow(form, width, height) { | |
| var left = (screen.width/2)-(width/2); | |
| var top = (screen.height/2)-(height/2); | |
| var dialog = window.open(form.action, '_form', 'resizable,width='+width+',height='+height+',top='+top+',left='+left ); | |
| form.target='_form'; | |
| return dialog; | |
| } | |
| $(function() { |
| $('input,select,textarea', $context).on('invalid', function(evt) { | |
| var $this = $(this); | |
| setErrorMessage($this, $this.data('validation-message') || this.validationMessage); | |
| }); | |
| function setErrorMessage($field, message) { | |
| var $parent = $field.closest('div:not(.input-group)'); | |
| var $messageContainer = $parent.find('.help-block'); | |
| if (!$messageContainer.length) { | |
| $messageContainer = $('<span class="help-block"><ul class="list-unstyled"></ul></span>'); |
| <?php | |
| namespace AppBundle\Form\EventListener; | |
| use Symfony\Component\EventDispatcher\EventSubscriberInterface; | |
| use Symfony\Component\Form\FormEvent; | |
| use Symfony\Component\Form\FormEvents; | |
| class ContextualOptionsFormListener implements EventSubscriberInterface | |
| { | |
| /** |
| alias xphp='php -dxdebug.remote_enable=1 -dxdebug.remote_autostart=1' | |
| alias dumpath='echo $PATH | tr ":" "\n"' | |
| alias adduserpath='echo 'PATH="$1:$PATH"' >> ~/.profile' |
| #!/bin/sh | |
| # running the tests | |
| ./bin/test | |
| echo "" | |
| STATUS_CODE=$? | |
| exit $STATUS_CODE |
#PHP getter method
/**
* Getter of $${PARAM_NAME}
*
* @return ${TYPE_HINT}
*/
#if (${TYPE_HINT} == "bool" || ${TYPE_HINT} == "boolean")
public ${STATIC} function ${PARAM_NAME}()