Permalink
Browse files

remove bin directory, not used

  • Loading branch information...
1 parent f54b36a commit cd4f848cc25c295f0465f88c95efc7f445f876a4 @l3pp4rd committed Feb 5, 2013
Showing with 0 additions and 79 deletions.
  1. +0 −31 bin/clear_temp.php
  2. +0 −48 bin/purify.php
View
@@ -1,31 +0,0 @@
-<?php
-
-$location = __DIR__ . '/../tests/temp';
-define('VENDOR_PATH', realpath(__DIR__ . '/../vendor'));
-
-set_include_path(implode(PATH_SEPARATOR, array(
- VENDOR_PATH,
- get_include_path(),
-)));
-
-$classLoaderFile = VENDOR_PATH . '/doctrine-common/lib/Doctrine/Common/ClassLoader.php';
-if (!file_exists($classLoaderFile)) {
- die('cannot find vendor, run: php bin/vendors.php');
-}
-
-require_once $classLoaderFile;
-$classLoader = new Doctrine\Common\ClassLoader('Symfony');
-$classLoader->register();
-
-$finder = new Symfony\Component\Finder\Finder;
-$finder->files()
- ->name('*')
- ->in(__DIR__ . '/../tests/temp');
-
-foreach ($finder as $fileInfo) {
- if (!$fileInfo->isWritable()) {
- continue;
- }
- echo 'removing: ' . $fileInfo->getRealPath() . PHP_EOL;
- @unlink($fileInfo->getRealPath());
-}
View
@@ -1,48 +0,0 @@
-<?php
-
-define('VENDOR_PATH', realpath(__DIR__ . '/../vendor'));
-
-set_include_path(implode(PATH_SEPARATOR, array(
- VENDOR_PATH,
- get_include_path(),
-)));
-
-$classLoaderFile = VENDOR_PATH . '/doctrine-common/lib/Doctrine/Common/ClassLoader.php';
-if (!file_exists($classLoaderFile)) {
- die('cannot find vendor, run: php bin/vendors.php');
-}
-
-require_once $classLoaderFile;
-$classLoader = new Doctrine\Common\ClassLoader('Symfony');
-$classLoader->register();
-
-$finder = new Symfony\Component\Finder\Finder;
-$finder->files()
- ->name('*.php')
- ->in(__DIR__ . '/../lib')
- ->in(__DIR__ . '/../tests');
-
-foreach ($finder as $fileInfo) {
- if (!$fileInfo->isReadable()) {
- continue;
- }
- $count = 0;
- $total = 0;
- $needsSave = false;
- $content = file_get_contents($fileInfo->getRealPath());
-
- $content = str_replace("\t", ' ', $content, $count);
- $total += $count;
-
- $content = str_replace("\r\n", "\n", $content, $count);
- $total += $count;
-
- $needsSave = $total != 0;
-
- if ($needsSave) {
- file_put_contents($fileInfo->getRealPath(), $content);
- echo $fileInfo->getRealPath() . PHP_EOL;
- }
-}
-
-echo 'done';

0 comments on commit cd4f848

Please sign in to comment.