php-cs-fixer for all the code
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
namespace Domframework;
|
namespace Domframework;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* To use it, the $serverKey must be defined. It can be created by example,
|
* To use it, the $serverKey must be defined. It can be created by example,
|
||||||
* by using $serverKey = sha1 (microtime (true));
|
* by using $serverKey = sha1 (microtime (true));
|
||||||
*/
|
*/
|
||||||
|
|||||||
+2
-2
@@ -41,8 +41,8 @@ class Authzgroups
|
|||||||
*/
|
*/
|
||||||
public function userrightsget($module, $user)
|
public function userrightsget($module, $user)
|
||||||
{
|
{
|
||||||
// if (isset ($_SESSION["domframework"]["authzgroups"][$module][$user]))
|
// if (isset ($_SESSION["domframework"]["authzgroups"][$module][$user]))
|
||||||
// return $_SESSION["domframework"]["authzgroups"][$module][$user];
|
// return $_SESSION["domframework"]["authzgroups"][$module][$user];
|
||||||
if ($this->rightCache !== null) {
|
if ($this->rightCache !== null) {
|
||||||
return $this->rightCache;
|
return $this->rightCache;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -68,8 +68,8 @@ class Authzgroupsoo
|
|||||||
*/
|
*/
|
||||||
public function userrightsget($module, $user)
|
public function userrightsget($module, $user)
|
||||||
{
|
{
|
||||||
// if (isset ($_SESSION["domframework"]["authzgroups"][$module][$user]))
|
// if (isset ($_SESSION["domframework"]["authzgroups"][$module][$user]))
|
||||||
// return $_SESSION["domframework"]["authzgroups"][$module][$user];
|
// return $_SESSION["domframework"]["authzgroups"][$module][$user];
|
||||||
if ($this->rightCache !== null) {
|
if ($this->rightCache !== null) {
|
||||||
return $this->rightCache;
|
return $this->rightCache;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -623,7 +623,7 @@ class Dblayer
|
|||||||
));
|
));
|
||||||
return $errors;
|
return $errors;
|
||||||
}
|
}
|
||||||
/* if (! isset($data[$foreign][0])) {
|
/* if (! isset($data[$foreign][0])) {
|
||||||
$errors[] = array("error", sprintf(
|
$errors[] = array("error", sprintf(
|
||||||
dgettext(
|
dgettext(
|
||||||
"domframework",
|
"domframework",
|
||||||
|
|||||||
+1
-1
@@ -1172,7 +1172,7 @@ class Dblayeroo
|
|||||||
*/
|
*/
|
||||||
private function fieldTypeComplete($field)
|
private function fieldTypeComplete($field)
|
||||||
{
|
{
|
||||||
// $this->debugLog ("Entering fieldTypeComplete (",$field,")", 2);
|
// $this->debugLog ("Entering fieldTypeComplete (",$field,")", 2);
|
||||||
if (! array_key_exists($field, $this->fields)) {
|
if (! array_key_exists($field, $this->fields)) {
|
||||||
$this->DBException(sprintf(
|
$this->DBException(sprintf(
|
||||||
"fieldType : can't find the definition for field '%s'",
|
"fieldType : can't find the definition for field '%s'",
|
||||||
|
|||||||
+2
-1
@@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/** DomFramework
|
/**
|
||||||
|
* DomFramework
|
||||||
* @package domframework
|
* @package domframework
|
||||||
* @author Dominique Fournier <dominique@fournier38.fr>
|
* @author Dominique Fournier <dominique@fournier38.fr>
|
||||||
* @license BSD
|
* @license BSD
|
||||||
|
|||||||
Reference in New Issue
Block a user