It is generally recommended to explicitly declare the visibility for methods.

This commit is contained in:
Giedrius committed 2015-03-13 12:23:11 +02:00
1 parent 425ec293e6
commit 0bed3aa2fd
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ class Box_Crypt implements \Box\InjectionAwareInterface
{
protected $di = NULL;
function __construct()
public function __construct()
{
if (!extension_loaded('mcrypt')) {
throw new Box_Exception('php mcrypt extension must be enabled on your server');
+1 -1
View File
@@ -13,7 +13,7 @@
class Box_DbLoggedPDOStatement extends PDOStatement
{
function execute ($input_parameters = null)
public function execute ($input_parameters = null)
{
error_log($this->queryString);
parent::execute($input_parameters);
+1 -1
View File
@@ -66,7 +66,7 @@ class Box_Paginator {
* @param int $limit
* @param int $midRange
*/
function __construct($itemsCount = 0, $currentPage = 1, $limit = 20, $midRange = 7)
public function __construct($itemsCount = 0, $currentPage = 1, $limit = 20, $midRange = 7)
{
//set total items count from controller
$this->itemsCount = $itemsCount;
+1 -1
View File
@@ -24,7 +24,7 @@ class Box_Response implements \Box\InjectionAwareInterface
protected $cookies;
protected $di;
function __construct ($content = null, $code = null, $status = null)
public function __construct ($content = null, $code = null, $status = null)
{
}