]> git.mxchange.org Git - friendica.git/blob - util/typo.php
d0ecf0c8fb08f6055dea721f05b20a5666682e96
[friendica.git] / util / typo.php
1 <?php
2         // Tired of chasing typos and finding them after a commit. 
3         // Run this from cmdline in basedir and quickly see if we've 
4         // got any parse errors in our application files.
5
6         include 'boot.php';
7
8         error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
9         ini_set('display_errors', '1');
10         ini_set('log_errors','0');
11
12
13         $a = new App();
14
15         $files = glob('mod/*.php');
16         foreach($files as $file)
17                 include_once($file);
18
19
20         $files = glob('include/*.php');
21         foreach($files as $file)
22                 include_once($file);
23
24         $files = glob('addon/*/*.php');
25         foreach($files as $file)
26                 include_once($file);