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
composer() { | |
mv ~/.homebrew/etc/php/7.0/conf.d/ext-xdebug.ini ~/.homebrew/etc/php/7.0/conf.d/ext-xdebug.ini-backup | |
command composer $@ | |
STATUS=$? | |
mv ~/.homebrew/etc/php/7.0/conf.d/ext-xdebug.ini-backup ~/.homebrew/etc/php/7.0/conf.d/ext-xdebug.ini | |
return $STATUS | |
} | |
alias composer=composer |
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
cache: | |
directories: | |
- $HOME/.composer/cache/ |
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
package main | |
import ( | |
"net/http" | |
"fmt" | |
"encoding/json" | |
) | |
type Message struct { | |
Name string |
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
#!/bin/bash | |
set -euo pipefail | |
if [ ! -d "$HOME/.composer" ]; then | |
mkdir "$HOME/.composer" | |
touch "$HOME/.composer/.lastpull" | |
fi | |
if test find "$HOME/.composer/" -name ".lastpull" -and -mtime +7 > /dev/null 2>&1 ; then |
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 | |
return PhpCsFixer\Config::create() | |
->setRiskyAllowed(true) | |
->setRules(array( | |
'@Symfony' => true, | |
'@Symfony:risky' => true, | |
'array_syntax' => array('syntax' => 'short'), | |
'dir_constant' => true, | |
'heredoc_to_nowdoc' => true, |
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
#!/bin/bash | |
cd /to/a/directory | |
# make comments | |
run -what --you=would type.on -the commandline | |
VARIABLES_ARE_A_THING="youcanuse" | |
# sometimes you want conditionals |
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
resources: | |
- name: rollerderbyrss-version | |
type: semver | |
source: | |
driver: git | |
uri: git@github.com:PurpleBooth/versions.git | |
branch: rollerderbyrss | |
private_key: ((github_private_key)) | |
initial_version: 0.3.0 |
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 | |
class MyExampleService() | |
{ | |
private $entityManager; | |
public function __construct(EntityManager $entityManager, OtherDependencies $dependencyOne) | |
{ | |
$this->entityManager = $entityManager; | |
} |
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 | |
return PhpCsFixer\Config::create() | |
->setRiskyAllowed(true) | |
->setRules( | |
[ | |
'@Symfony' => true, | |
'@Symfony:risky' => true, | |
'array_syntax' => ['syntax' => 'short'], | |
'declare_strict_types' => true, |
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
From e14992c251e1dbd1173a72c42c5ee95dc1c3711f Mon Sep 17 00:00:00 2001 | |
From: Billie Thompson <billie@purplebooth.co.uk> | |
Date: Tue, 29 Aug 2017 23:22:11 +0100 | |
Subject: [PATCH] Failing test for issue #472 | |
--- | |
tests/PHPStan/Analyser/NodeScopeResolverTest.php | 4 ++++ | |
tests/PHPStan/Analyser/data/functionPhpDocs.php | 2 ++ | |
2 files changed, 6 insertions(+) |