Skip to content

Instantly share code, notes, and snippets.

View DaGhostman's full-sized avatar
👻

Dimitar Dimitrov DaGhostman

👻
  • Sofia, Bulgaria
View GitHub Profile
~ preact build
Build [=================== ] 93% (15.8s) after chunk asset optimization
sw-esm.js ⏤ 0 B (-741 B)
sw.js ⏤ 0 B (-738 B)
bundle.b92e1.css ⏤ 0 B (-477 B)
bundle.7ec7e.esm.js ⏤ 0 B (-8.35 kB)
polyfills.a34c8.esm.js ⏤ 0 B (-2.01 kB)
route-home/index.tsx.chunk.f8de7.css ⏤ 0 B (-86 B)
route-home/index.tsx.chunk.562fc.esm.js ⏤ 0 B (-294 B)
route-notfound/index.tsx.chunk.06617.css ⏤ 0 B (-73 B)
diff --git a/src/Visitor/CodeCoverageMethodIgnoreVisitor.php b/src/Visitor/CodeCoverageMethodIgnoreVisitor.php
index f1bd6fd..305770d 100644
--- a/src/Visitor/CodeCoverageMethodIgnoreVisitor.php
+++ b/src/Visitor/CodeCoverageMethodIgnoreVisitor.php
@@ -53,6 +53,10 @@ final class CodeCoverageMethodIgnoreVisitor extends NodeVisitorAbstract
/** @var \ReflectionClass $reflection */
$reflection = $node->getAttribute(ReflectionVisitor::REFLECTION_CLASS_KEY);
+ if (!$reflection->hasMethod($node->name->toString())) {
+ return null;
@DaGhostman
DaGhostman / .gitconfig
Last active September 19, 2018 11:49
.gitconfig Aliases
[alias]
tree = log --graph --decorate --pretty=oneline --abbrev-commit
create = "!f() { git checkout -b $@ && git push --set-upstream origin $(git rev-parse --abbrev-ref HEAD); }; f"
delete = "!f() { git checkout develop && git branch -D $1 && git push origin --delete $1;}; f"
switch = "!f() { if [ -n \"$(git status --porcelain=v1)\" ]; then git stash save --include-untracked --quiet \"$(git rev-parse --abbrev-ref HEAD)\"; fi && git checkout $1 && git pull origin $1 --rebase && REF=$(git rev-parse --abbrev-ref HEAD); if [ -n \"$(git stash list | grep On.${REF}..${REF}$)\" ]; then for stash in $(git stash list | grep On.${REF}..${REF}$ | cut -d ':' -f1 ); do git stash pop $stash; done; fi; echo \"Switched to branch '$1'\";}; f >/dev/null 2>&1"
@DaGhostman
DaGhostman / profile.ps1
Created February 19, 2018 17:23
Oh-My-Posh
Import-Module posh-git
Import-Module oh-my-posh
Set-Theme area51
if ((Get-SshAgent) -eq 0) {
Start-SshAgent
}
# Font "DejaVu Sans Mono For Powerline"
if ([bool](Get-Module "posh-git")) {
Install-Module posh-git -Scope CurrentUser
}
if ([bool](Get-Module "oh-my-posh")) {
Install-Module oh-my-posh -Scope CurrentUser -AllowClobber
}
# Set-Theme paradox
{
"php.suggest.basic": false,
"editor.fontSize": 15,
"editor.lineHeight": 22,
"editor.cursorBlinking": "phase",
"editor.fontFamily": "'Fira Code Medium', Consolas, 'Courier New', monospace",
"editor.fontLigatures": true,
"files.exclude": {
"**/.git": true,
"**/.svn": true,
<?xml version="1.0" encoding="utf8" standalone="yes" ?>
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="manifest">
<xs:complexType>
<xs:sequence>
<xs:element name="name" minOccurs="1" maxOccurs="1">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string" />
delimitMate - https://github.com/Raimondi/delimitMate.git
html5 - https://github.com/othree/html5.vim.git
NERDTree - https://github.com/scrooloose/nerdtree.git
NERDTree-git-plugin - https://github.com/Xuyuanp/nerdtree-git-plugin.git
phpcomplete - https://github.com/shawncplus/phpcomplete.vim.git
PHP-Indentign-for-VIm - https://github.com/2072/PHP-Indenting-for-VIm.git
php - https://github.com/StanAngeloff/php.vim.git
unit - https://github.com/Shougo/unite.vim.git
vim-acomment - https://github.com/alvan/vim-acomment.git
vim-airline - https://github.com/vim-airline/vim-airline.git
@DaGhostman
DaGhostman / .vimrc
Last active June 28, 2017 07:15
Vim configurations, plugins and stuff
" Enable pathogen plugin loading
execute pathogen#infect()
call pathogen#helptags()
" Enable syntax highlight
syntax on
"" Set theme
" set background=dark
colorscheme desert
@DaGhostman
DaGhostman / codewave_index.php
Created April 2, 2015 23:42
Example index file for v3 of the CodeWave framework.
<?php
require_once '../vendor/autoload.php';
$router = new \Phroute\Phroute\RouteCollector();
$router->get('/', function() {
echo 'Hello, world!';
});