[FOLLOWUP] Migrate to static::class
authorBenjamin Franzke <bfr@qbus.de>
Tue, 29 Dec 2015 19:00:22 +0000 (20:00 +0100)
committerTim Lochm├╝ller <tim@fruit-lab.de>
Thu, 31 Dec 2015 11:37:28 +0000 (12:37 +0100)
Use self:: where applicable and format according to PSR-2

Classes/StaticFileCache.php
ext_localconf.php

index 584a4cd..e94e2cb 100644 (file)
@@ -55,7 +55,7 @@ class StaticFileCache implements SingletonInterface
      */
     public static function getInstance()
     {
-        return GeneralUtility::makeInstance(StaticFileCache::class);
+        return GeneralUtility::makeInstance(self::class);
     }
 
     /**
index a08bbef..c47e118 100644 (file)
@@ -42,7 +42,7 @@ $ruleClasses = [
 
 /** @var \TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher */
 $signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
-foreach($ruleClasses as $class){
+foreach ($ruleClasses as $class) {
     $signalSlotDispatcher->connect(\SFC\NcStaticfilecache\StaticFileCache::class, 'cacheRule', $class, 'check');
 }