Fixes coding style
authorMatthias Schmidt <gravatronics@live.com>
Sat, 5 Jan 2013 17:08:23 +0000 (18:08 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 5 Jan 2013 17:08:23 +0000 (18:08 +0100)
wcfsetup/install/files/lib/system/WCF.class.php
wcfsetup/install/files/lib/system/cache/CacheHandler.class.php
wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php
wcfsetup/install/files/lib/system/session/SessionHandler.class.php

index 3eb57315295e845629d059eafa8f497c156ce89c..36c24bbc49b64a35c6443dd9e21c88de7a6dae50 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 namespace wcf\system;
 use wcf\data\application\Application;
+use wcf\data\option\OptionEditor;
 use wcf\data\package\PackageCache;
 use wcf\system\application\ApplicationHandler;
 use wcf\system\cache\CacheHandler;
@@ -330,7 +331,7 @@ class WCF {
                
                // create options file if doesn't exist
                if (!file_exists($filename) || filemtime($filename) <= 1) {
-                       \wcf\data\option\OptionEditor::rebuild();
+                       OptionEditor::rebuild();
                }
                require_once($filename);
        }
index 0d9628b978b2d64399e6883f59149b49dd2a2843..1cd4633859dc445db49d54f6abe511d378ec86d3 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\cache;
+use wcf\system\cache\source\DiskCacheSource;
 use wcf\system\exception\SystemException;
 use wcf\system\SingletonFactory;
 
@@ -38,7 +39,7 @@ class CacheHandler extends SingletonFactory {
                catch (SystemException $e) {
                        if (CACHE_SOURCE_TYPE != 'disk') {
                                // fallback to disk cache
-                               $this->cacheSource = new \wcf\system\cache\source\DiskCacheSource();
+                               $this->cacheSource = new DiskCacheSource();
                        }
                        else {
                                throw $e;
index a66dc2729fa41834e63accc3a38aa3aa6ea9ddc4..f297fc5f1785be4e83846d40a4614586b5fe9f24 100644 (file)
@@ -26,6 +26,7 @@ use wcf\system\package\plugin\ObjectTypePackageInstallationPlugin;
 use wcf\system\package\plugin\SQLPackageInstallationPlugin;
 use wcf\system\request\LinkHandler;
 use wcf\system\request\RouteHandler;
+use wcf\system\setup\Installer;
 use wcf\system\style\StyleHandler;
 use wcf\system\version\VersionHandler;
 use wcf\system\WCF;
@@ -539,7 +540,7 @@ class PackageInstallationDispatcher {
         * @return      wcf\system\setup\Installer
         */
        public function extractFiles($targetDir, $sourceArchive, $fileHandler = null) {
-               return new \wcf\system\setup\Installer($targetDir, $sourceArchive, $fileHandler);
+               return new Installer($targetDir, $sourceArchive, $fileHandler);
        }
        
        /**
index b578a6b0ed93793326011ee9aa8267b9c58e3ddd..e53ea02af31df1c1ae45c9b2004160dd32a2ab7b 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 namespace wcf\system\session;
 use wcf\data\user\User;
+use wcf\page\ITrackablePage;
 use wcf\system\cache\CacheHandler;
 use wcf\system\exception\PermissionDeniedException;
 use wcf\system\request\RequestHandler;
@@ -518,7 +519,7 @@ class SessionHandler extends SingletonFactory {
                        'requestMethod' => $this->requestMethod,
                        'lastActivityTime' => TIME_NOW
                );
-               if (PACKAGE_ID && RequestHandler::getInstance()->getActiveRequest() && RequestHandler::getInstance()->getActiveRequest()->getRequestObject() instanceof \wcf\page\ITrackablePage && RequestHandler::getInstance()->getActiveRequest()->getRequestObject()->isTracked()) {
+               if (PACKAGE_ID && RequestHandler::getInstance()->getActiveRequest() && RequestHandler::getInstance()->getActiveRequest()->getRequestObject() instanceof ITrackablePage && RequestHandler::getInstance()->getActiveRequest()->getRequestObject()->isTracked()) {
                        $data['controller'] = RequestHandler::getInstance()->getActiveRequest()->getRequestObject()->getController();
                        $data['parentObjectType'] = RequestHandler::getInstance()->getActiveRequest()->getRequestObject()->getParentObjectType();
                        $data['parentObjectID'] = RequestHandler::getInstance()->getActiveRequest()->getRequestObject()->getParentObjectID();