This file contains 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 | |
namespace Acme\AppBundle\Entity\Tag; | |
use FPN\TagBundle\Entity\Tag as BaseTag; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* @ORM\Table(name="acme_tag") | |
* @ORM\Entity(repositoryClass="Acme\AppBundle\Entity\Tag\TagRepository") |
This file contains 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
{ | |
"_readme": [ | |
"This file locks the dependencies of your project to a known state", | |
"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", | |
"This file is @generated automatically" | |
], | |
"hash": "41268b2274b801d5ce161a06ab9b7623", | |
"packages": [ | |
{ | |
"name": "monolog/monolog", |
This file contains 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
/** | |
* Check or the file is password protected based on the top file contents. | |
* | |
* @param string $absolutePath | |
* @return bool | |
*/ | |
public function checkFileEncryption($absolutePath) | |
{ | |
$content = utf8_encode(file_get_contents($absolutePath)); | |
if (mb_substr($content, 0, 2) == "ÐÏ") { |
This file contains 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
#!/usr/bin/env bash | |
## Allows running the latest PHPStan version without having to install the project | |
## | |
## See repo at https://github.com/phpstan/phpstan | |
## Thanks to https://gist.github.com/steinwaywhw/a4cd19cda655b8249d908261a62687f8 | |
URL=`curl -s https://api.github.com/repos/phpstan/phpstan/releases/latest \ | |
| grep "browser_download_url.*phpstan.phar\"" \ | |
| cut -d : -f 2,3 \ |
This file contains 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
name: Blank snippet | |
description: '' | |
author: rvanlaak | |
host: WORD | |
api_set: {} | |
script: | |
content: | | |
$("#run").click(() => tryCatch(run)); | |
async function run() { |
This file contains 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
name: Blank snippet - 1 | |
description: '' | |
author: rvanlaak | |
host: WORD | |
api_set: {} | |
script: | |
content: | | |
$("#add").click(() => tryCatch(addBindingFromSelection)); | |
$("#goto").click(() => tryCatch(gotoBinding)); | |
$("#remove").click(() => tryCatch(removeBinding)); |