<?php
/**
 * @author         Pierre-Henry Soria <ph7software@gmail.com>
 * @copyright      (c) 2014-2017, Pierre-Henry Soria. All Rights Reserved.
 * @license        GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory.
 * @package        PH7 / App / System / Module / Admin / From / Processing
 */

namespace PH7;

defined('PH7') or die('Restricted access');

use PH7\Framework\Layout\Tpl\Engine\PH7Tpl\PH7Tpl;
use PH7\Framework\Mvc\Model\License as LicenseModel;

class LicenseFormProcess extends Form
{
    public function __construct($iLicenseId)
    {
        parent::__construct();

        $oLicenseModel = new LicenseModel;
        $sKey = $this->httpRequest->post('copyright_key');

        if (!$this->str->equals($sKey, $oLicenseModel->get($iLicenseId))) {
            $oLicenseModel->save($sKey, $iLicenseId);

            // Clean caches to remove the copyright notices
            $this->file->deleteDir(PH7_PATH_CACHE . PH7Tpl::COMPILE_DIR);
            $this->file->deleteDir(PH7_PATH_CACHE . PH7Tpl::CACHE_DIR);
        }
        unset($oLicenseModel);
    }
}

<?php
/**
 * @author         Pierre-Henry Soria <ph7software@gmail.com>
 * @copyright      (c) 2014-2017, Pierre-Henry Soria. All Rights Reserved.
 * @license        GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory.
 * @package        PH7 / App / System / Module / Admin / From / Processing
 */

namespace PH7;

defined('PH7') or die('Restricted access');

use PH7\Framework\Layout\Tpl\Engine\PH7Tpl\PH7Tpl;
use PH7\Framework\Mvc\Model\License;

class LicenseFormProcess extends Form
{
    public function __construct($iLicenseId)
    {
        parent::__construct();

        $oLicense = new License;
        $sKey = $this->httpRequest->post('copyright_key');

        if (!$this->str->equals($sKey, $oLicense->get($iLicenseId))) {
            $oLicense->save($sKey, $iLicenseId);

            // Clean caches to remove the copyright notices
            $this->file->deleteDir(PH7_PATH_CACHE . PH7Tpl::COMPILE_DIR);
            $this->file->deleteDir(PH7_PATH_CACHE . PH7Tpl::CACHE_DIR);
        }
        unset($oLicense);
    }
}

--- 
+++ 
@@ -11,7 +11,7 @@
 defined('PH7') or die('Restricted access');
 
 use PH7\Framework\Layout\Tpl\Engine\PH7Tpl\PH7Tpl;
-use PH7\Framework\Mvc\Model\License;
+use PH7\Framework\Mvc\Model\License as LicenseModel;
 
 class LicenseFormProcess extends Form
 {
@@ -19,16 +19,16 @@
     {
         parent::__construct();
 
-        $oLicense = new License;
+        $oLicenseModel = new LicenseModel;
         $sKey = $this->httpRequest->post('copyright_key');
 
-        if (!$this->str->equals($sKey, $oLicense->get($iLicenseId))) {
-            $oLicense->save($sKey, $iLicenseId);
+        if (!$this->str->equals($sKey, $oLicenseModel->get($iLicenseId))) {
+            $oLicenseModel->save($sKey, $iLicenseId);
 
             // Clean caches to remove the copyright notices
             $this->file->deleteDir(PH7_PATH_CACHE . PH7Tpl::COMPILE_DIR);
             $this->file->deleteDir(PH7_PATH_CACHE . PH7Tpl::CACHE_DIR);
         }
-        unset($oLicense);
+        unset($oLicenseModel);
     }
 }
Change object name to more explicit name
