GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 5ee131...02dba5 )
by Axel
03:06
created
example/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,6 +6,6 @@
 block discarded – undo
6 6
 
7 7
 $manager = new ChangelogManager();
8 8
 // Set the cache validity time to one day
9
-$manager->getCacheManager()->setCacheTime(60*60*24);
9
+$manager->getCacheManager()->setCacheTime(60 * 60 * 24);
10 10
 echo $manager->getLastVersion(__DIR__ . '/EXAMPLE_CHANGELOG.md') . "\n";
11 11
 echo $manager->getAllVersions(__DIR__ . '/EXAMPLE_CHANGELOG.md') . "\n";
12 12
\ No newline at end of file
Please login to merge, or discard this patch.
src/Manager/CacheManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      */
39 39
     public function getCache($changelogFile, $cacheFile) {
40 40
         $path = $this->generateCachePath($changelogFile, $cacheFile);
41
-        if(!is_file($path) || ($generationTime = filemtime($path)) === false || $generationTime < (time() - $this->cacheTime)) {
41
+        if (!is_file($path) || ($generationTime = filemtime($path)) === false || $generationTime < (time() - $this->cacheTime)) {
42 42
             clearstatcache(true, $path);
43 43
             return false;
44 44
         }
@@ -55,6 +55,6 @@  discard block
 block discarded – undo
55 55
     public function generateCachePath($changelogFile, $cacheFile) {
56 56
         $changelogSignature = str_replace([':', ' ', '/', '\\'], '-', strtolower(basename(dirname($changelogFile)) . '-' . basename($changelogFile, 'md')));
57 57
         
58
-        return realpath(__DIR__ . "/../../data/cache"). '/' . $changelogSignature . "-$cacheFile.cache";
58
+        return realpath(__DIR__ . "/../../data/cache") . '/' . $changelogSignature . "-$cacheFile.cache";
59 59
     }
60 60
 }
61 61
\ No newline at end of file
Please login to merge, or discard this patch.
src/Manager/ChangelogManager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      */
39 39
     public function getLastVersion($filepath, $format = 'json') {
40 40
         $cacheFile = "last-version-$format";
41
-        if(($cache = $this->cacheManager->getCache($filepath, $cacheFile)) !== false) {
41
+        if (($cache = $this->cacheManager->getCache($filepath, $cacheFile)) !== false) {
42 42
             return $cache;
43 43
         }
44 44
         $this->initializeDriver($format);
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function getAllVersions($filepath, $format = 'json') {
57 57
         $cacheFile = "all-versions-$format";
58
-        if(($cache = $this->cacheManager->getCache($filepath, $cacheFile)) !== false) {
58
+        if (($cache = $this->cacheManager->getCache($filepath, $cacheFile)) !== false) {
59 59
             return $cache;
60 60
         }
61 61
         $this->initializeDriver($format);
@@ -72,12 +72,12 @@  discard block
 block discarded – undo
72 72
     public function initializeDriver($format) {
73 73
         $driverClass = 'ChangelogParser\\Driver\\' . ucfirst($format) . 'Driver';
74 74
         
75
-        if(!class_exists($driverClass)) {
75
+        if (!class_exists($driverClass)) {
76 76
             throw new \InvalidArgumentException('The requested format is not supported');
77 77
         }
78 78
         
79 79
         $this->driver = new $driverClass();
80
-        if($this->storagePath !== null) {
80
+        if ($this->storagePath !== null) {
81 81
             $this->driver->setStoragePath($this->storagePath);
82 82
         }
83 83
     }
Please login to merge, or discard this patch.