From 803fedc1c26df0c4dc2c001f1763605dce768e8c Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Mon, 17 Feb 2020 22:15:39 +0545 Subject: [PATCH] Declare undeclared vars and methods --- Core/Frameworks/Baikal/Core/PDOBasicAuth.php | 5 +++++ .../BaikalAdmin/Controller/Settings/Standard.php | 10 ++++++++++ .../BaikalAdmin/Controller/Settings/System.php | 10 ++++++++++ Core/Frameworks/BaikalAdmin/Controller/Users.php | 10 ++++++++++ Core/Frameworks/Flake/Controller/Cli.php | 5 +++++ Core/Frameworks/Flake/Controller/HtmlBlock.php | 5 +++++ .../Frameworks/Flake/Controller/HtmlBlockTemplated.php | 10 ++++++++++ Core/Frameworks/Flake/Controller/Page.php | 5 +++++ Core/Frameworks/Flake/Core/Database.php | 5 +++++ Core/Frameworks/Flake/Core/PostConnectionService.php | 5 +++++ Core/Frameworks/Flake/Core/Render/Zone.php | 3 +++ Core/Frameworks/Flake/Core/Requester.php | 7 +++++++ 12 files changed, 80 insertions(+) diff --git a/Core/Frameworks/Baikal/Core/PDOBasicAuth.php b/Core/Frameworks/Baikal/Core/PDOBasicAuth.php index 9270194..7eadb87 100644 --- a/Core/Frameworks/Baikal/Core/PDOBasicAuth.php +++ b/Core/Frameworks/Baikal/Core/PDOBasicAuth.php @@ -34,6 +34,11 @@ class PDOBasicAuth extends \Sabre\DAV\Auth\Backend\AbstractBasic { */ protected $authRealm; + /** + * @var string + */ + private $currentUser; + /** * Creates the backend object. * diff --git a/Core/Frameworks/BaikalAdmin/Controller/Settings/Standard.php b/Core/Frameworks/BaikalAdmin/Controller/Settings/Standard.php index d6676d5..19e4f27 100644 --- a/Core/Frameworks/BaikalAdmin/Controller/Settings/Standard.php +++ b/Core/Frameworks/BaikalAdmin/Controller/Settings/Standard.php @@ -29,6 +29,16 @@ namespace BaikalAdmin\Controller\Settings; class Standard extends \Flake\Core\Controller { + /** + * @var \Baikal\Model\Config\Standard + */ + private $oModel; + + /** + * @var \Formal\Form + */ + private $oForm; + function execute() { $this->oModel = new \Baikal\Model\Config\Standard(PROJECT_PATH_SPECIFIC . "config.php"); diff --git a/Core/Frameworks/BaikalAdmin/Controller/Settings/System.php b/Core/Frameworks/BaikalAdmin/Controller/Settings/System.php index 4069fa1..120f74e 100644 --- a/Core/Frameworks/BaikalAdmin/Controller/Settings/System.php +++ b/Core/Frameworks/BaikalAdmin/Controller/Settings/System.php @@ -29,6 +29,16 @@ namespace BaikalAdmin\Controller\Settings; class System extends \Flake\Core\Controller { + /** + * @var \Baikal\Model\Config\System + */ + private $oModel; + + /** + * @var \Formal\Form + */ + private $oForm; + function execute() { $this->oModel = new \Baikal\Model\Config\System(PROJECT_PATH_SPECIFIC . "config.system.php"); diff --git a/Core/Frameworks/BaikalAdmin/Controller/Users.php b/Core/Frameworks/BaikalAdmin/Controller/Users.php index 55c29fa..291408d 100644 --- a/Core/Frameworks/BaikalAdmin/Controller/Users.php +++ b/Core/Frameworks/BaikalAdmin/Controller/Users.php @@ -31,6 +31,16 @@ class Users extends \Flake\Core\Controller { protected $aMessages = []; + /** + * @var \Baikal\Model\User + */ + private $oModel; + + /** + * @var \Formal\Form + */ + private $oForm; + function execute() { if ($this->actionEditRequested()) { $this->actionEdit(); diff --git a/Core/Frameworks/Flake/Controller/Cli.php b/Core/Frameworks/Flake/Controller/Cli.php index 6430b1c..26b5067 100644 --- a/Core/Frameworks/Flake/Controller/Cli.php +++ b/Core/Frameworks/Flake/Controller/Cli.php @@ -29,6 +29,11 @@ namespace Flake\Controller; class Cli extends \Flake\Core\Render\Container { + /** + * @var array + */ + private $aArgs; + function render() { $this->sys_init(); $this->init(); diff --git a/Core/Frameworks/Flake/Controller/HtmlBlock.php b/Core/Frameworks/Flake/Controller/HtmlBlock.php index 6ffa2c7..4e4c630 100644 --- a/Core/Frameworks/Flake/Controller/HtmlBlock.php +++ b/Core/Frameworks/Flake/Controller/HtmlBlock.php @@ -29,6 +29,11 @@ namespace Flake\Controller; class HtmlBlock extends \Flake\Core\Controller { + /** + * @var string + */ + private $sHtml; + function __construct($sHtml) { $this->sHtml = $sHtml; } diff --git a/Core/Frameworks/Flake/Controller/HtmlBlockTemplated.php b/Core/Frameworks/Flake/Controller/HtmlBlockTemplated.php index 2bb278d..fd507d3 100644 --- a/Core/Frameworks/Flake/Controller/HtmlBlockTemplated.php +++ b/Core/Frameworks/Flake/Controller/HtmlBlockTemplated.php @@ -29,6 +29,16 @@ namespace Flake\Controller; class HtmlBlockTemplated extends \Flake\Core\Controller { + /** + * @var string + */ + private $sTemplatePath; + + /** + * @var array + */ + private $aMarkers; + function __construct($sTemplatePath, $aMarkers = []) { $this->sTemplatePath = $sTemplatePath; $this->aMarkers = $aMarkers; diff --git a/Core/Frameworks/Flake/Controller/Page.php b/Core/Frameworks/Flake/Controller/Page.php index 401b371..fb9252a 100644 --- a/Core/Frameworks/Flake/Controller/Page.php +++ b/Core/Frameworks/Flake/Controller/Page.php @@ -34,6 +34,11 @@ class Page extends \Flake\Core\Render\Container { protected $sMetaDescription = ""; protected $sTemplatePath = ""; + /** + * @var string + */ + private $sBaseUrl; + function __construct($sTemplatePath) { $this->sTemplatePath = $sTemplatePath; } diff --git a/Core/Frameworks/Flake/Core/Database.php b/Core/Frameworks/Flake/Core/Database.php index d73ad54..5aeb4f5 100644 --- a/Core/Frameworks/Flake/Core/Database.php +++ b/Core/Frameworks/Flake/Core/Database.php @@ -29,6 +29,11 @@ namespace Flake\Core; abstract class Database extends \Flake\Core\FLObject { + private $debugOutput; + private $debug_lastBuiltQuery; + private $store_lastBuiltQuery; + private $oDb; + /* common stuff */ protected function messageAndDie($sMessage) { diff --git a/Core/Frameworks/Flake/Core/PostConnectionService.php b/Core/Frameworks/Flake/Core/PostConnectionService.php index df4992e..2be6d9c 100644 --- a/Core/Frameworks/Flake/Core/PostConnectionService.php +++ b/Core/Frameworks/Flake/Core/PostConnectionService.php @@ -29,6 +29,11 @@ namespace Flake\Core; abstract class PostConnectionService extends \Flake\Core\FLObject { + /** + * @var array + */ + private $aParams; + function __construct($aParams = []) { $this->aParams = $aParams; } diff --git a/Core/Frameworks/Flake/Core/Render/Zone.php b/Core/Frameworks/Flake/Core/Render/Zone.php index 332de7b..ec81c2d 100644 --- a/Core/Frameworks/Flake/Core/Render/Zone.php +++ b/Core/Frameworks/Flake/Core/Render/Zone.php @@ -28,6 +28,9 @@ namespace Flake\Core\Render; class Zone extends \Flake\Core\FLObject { + private $oZonableObject; + private $sZone; + function __construct(&$oZonableObject, $sZone) { $this->oZonableObject = & $oZonableObject; $this->sZone = $sZone; diff --git a/Core/Frameworks/Flake/Core/Requester.php b/Core/Frameworks/Flake/Core/Requester.php index e2d167f..9a93dc2 100644 --- a/Core/Frameworks/Flake/Core/Requester.php +++ b/Core/Frameworks/Flake/Core/Requester.php @@ -28,6 +28,12 @@ namespace Flake\Core; abstract class Requester extends \Flake\Core\FLObject { + protected $sModelClass = ''; + protected $sOrderField = ''; + protected $sOrderDirection = 'ASC'; + protected $iLimitStart = false; + protected $iLimitNumber = false; + function __construct($sModelClass) { $this->sModelClass = $sModelClass; } @@ -61,6 +67,7 @@ abstract class Requester extends \Flake\Core\FLObject { return $this; } + abstract function addClauseEquals($sField, $sValue); abstract function execute(); abstract function count(); }