From ce015983634a8c4c96a525caf13ca787ff06718a Mon Sep 17 00:00:00 2001 From: visavi Date: Mon, 21 May 2018 18:16:26 +0300 Subject: [PATCH] delete json in patterns --- cleanup | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cleanup b/cleanup index 7ac480e..4c6ac77 100755 --- a/cleanup +++ b/cleanup @@ -52,7 +52,6 @@ $patterns = [ '*.md', '*.xml', '*.txt', - '*.json', '*.dist', '.php_cs*', '.scrutinizer', @@ -60,7 +59,6 @@ $patterns = [ '.gitattributes', '.editorconfig', 'dockerfile', - 'composer.json', 'composer.lock', ]; @@ -119,7 +117,7 @@ function prepareWord($matches) return '[' . strtolower($matches[1]) . strtoupper($matches[1]) . ']'; } -$directories = expandTree(dirname(dirname(__DIR__))); +$directories = expandTree(dirname(__DIR__, 2)); foreach ($directories as $directory) { foreach ($patterns as $pattern) {