コード例 #1
0
 /**
  * @param string[] $files
  *
  * @return string[]
  */
 protected function filesToClassmap($files)
 {
     $map = array();
     foreach ($files as $file) {
         $classes = FileInspector::inspectPhpFile($file);
         foreach ($classes as $class) {
             $map[$class] = $file;
         }
     }
     return $map;
 }
コード例 #2
0
        }
        return 0;
    }
    public function hasNewVersion()
    {
        $myVer = $this->getVersionFromFile(__FILE__);
        $gitVer = $this->getVersionFromFile($this->git . '?r=' . mt_rand());
        if ($this->compareVersions($gitVer, $myVer) > 0) {
            return true;
        }
        return false;
    }
}
$updater = new Updater('https://raw.githubusercontent.com/kostofffan/cleanup-after-dev/master/cleanup_after_dev.php');
$updater->handleRoute();
$inspector = new FileInspector();
$inspector->inspectDirectory('./');
?>
<html>
<head>
    <title>Cleanup <?php 
print htmlspecialchars($_SERVER['SERVER_NAME']);
?>
 after developer</title>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" integrity="sha512-dTfge/zgoMYpP7QbHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHubeNikyKGVyQ==" crossorigin="anonymous">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css" integrity="sha384-aUGj/X2zp5rLCbBxumKTCw2Z50WgIr1vs/PFN4praOTvYXWlVyh2UtNUU0KAUhAX" crossorigin="anonymous">
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js" integrity="sha512-K1qjQ+NcF2TYO/eI3M6v8EiNYZfA95pQumfvcVrTHtwQVDG+aHRqLi/ETn2uB+1JqwYqVG3LIvdm9lj6imS/pQ==" crossorigin="anonymous"></script>
</head>
<body>
<div class="container">
    <?php