Changes for Code Style validation

This commit is contained in:
Erik Amaru Ortiz
2014-01-27 17:35:58 -04:00
parent a27e9cea3e
commit 9fbf9e6e49
8 changed files with 50 additions and 47 deletions

View File

@@ -426,7 +426,6 @@ class Model
}
}
$project['diagrams'] = array($diagram);
$project['diagrams'][0]['pro_uid'] = $process['pro_uid'];
$project['diagrams'][0]['laneset'] = $lanesets;

View File

@@ -147,7 +147,6 @@ class Workflow
'_action' => 'CREATE'
);
break;
default:
throw new \LogicException("Invalid connection to Event object type");
}

View File

@@ -42,3 +42,4 @@ abstract class Api
return \Services\Api\OAuth2\Server::getUserId();
}
}

View File

@@ -44,3 +44,4 @@ class Logger
$me->setLog($data);
}
}

View File

@@ -245,3 +245,4 @@ class PmPdo implements \OAuth2\Storage\AuthorizationCodeInterface,
return array_merge($a, array_change_key_case($a, $case));
}
}

View File

@@ -200,12 +200,12 @@ class Server implements iAuthenticate
// verify if the client is not our local PM Designer client
if ($token['client_id'] != self::getPmClientId()) {
// return $allowed;
//return $allowed;
}
// making a local session verification for PM Web Designer Client
if (! isset($_SESSION) || ! array_key_exists('USER_LOGGED', $_SESSION)) {
// return false;
//return false;
}
return $allowed;
@@ -236,3 +236,4 @@ class Server implements iAuthenticate
return array_keys($this->scope);
}
}

View File

@@ -37,7 +37,7 @@ class Test extends Api
throw new RestException(400, "GET: Record not found. Record with id: $id does not exist!");
}
public function post($request_data = NULL)
public function post($request_data = null)
{
$id = count($this->data) + 1;
$this->data[$id] = array(
@@ -62,7 +62,7 @@ class Test extends Api
return $this->data[$id];
}
public function put($id, $request_data = NULL)
public function put($id, $request_data = null)
{
if (array_key_exists($id, $this->data)) {
if (array_key_exists('name', $request_data)) {

View File

@@ -191,9 +191,9 @@ class Type
/**
* @param integer $age {@choise 1,2}
*/
public function postInt($age='')
public function postInt($age = '')
{
return '->'.$age;
return $age;
}
}
@@ -210,3 +210,4 @@ class Author
*/
public $email = 'name@domain.com';
}