Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
johanjanssens committed Apr 28, 2016
1 parent 77e04e6 commit 722ff66
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
10 changes: 5 additions & 5 deletions code/database/row/interface.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,10 @@ public function isNew();
*/
public function isModified($property = null);

/**
* Test the connected status of the row.
*
* @return bool
*/
/**
* Test the connected status of the row.
*
* @return bool
*/
public function isConnected();
}
6 changes: 3 additions & 3 deletions code/database/rowset/interface.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function insert($row, $status = null);
*
* This functions accepts either a know position or associative array of key/value pairs
*
* @param string $needle The position or the key to search for
* @param string $needle The position or the key to search for
* @return DatabaseRowInterface
*/
public function find($needle);
Expand All @@ -45,7 +45,7 @@ public function find($needle);
*
* The row will be removed based on it's identity_column if set or otherwise by it's object handle.
*
* @param ObjectHandlable|DatabaseRowInterface $row
* @param DatabaseRowInterface $row
* @throws \InvalidArgumentException if the object doesn't implement DatabaseRowInterface
* @return DatabaseRowsetAbstract
*/
Expand All @@ -54,7 +54,7 @@ public function remove($row);
/**
* Checks if the collection contains a specific row
*
* @param ObjectHandlable|DatabaseRowInterface $row
* @param DatabaseRowInterface $row
* @throws \InvalidArgumentException if the object doesn't implement DatabaseRowInterface
* @return bool Returns TRUE if the object is in the set, FALSE otherwise
*/
Expand Down
6 changes: 3 additions & 3 deletions code/dispatcher/request/transport/data.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@
class DispatcherRequestTransportData extends DispatcherRequestTransportAbstract
{
/**
* Receive request
* Set the request data
*
* @param DispatcherRequestInterface $request
*/
public function receive(DispatcherRequestInterface $request)
{
//Set request data
if($request->getContentType() == 'application/x-www-form-urlencoded')
{
if (in_array($request->getMethod(), array('PUT', 'DELETE', 'PATCH')))
Expand All @@ -35,7 +34,8 @@ public function receive(DispatcherRequestInterface $request)
$request->getData()->add($data);
}
}
elseif(in_array($request->getContentType(), array('application/json', 'application/x-json', 'application/vnd.api+json')))

if(in_array($request->getContentType(), array('application/json', 'application/x-json', 'application/vnd.api+json')))
{
if(in_array($request->getMethod(), array('POST', 'PUT', 'DELETE', 'PATCH')))
{
Expand Down
2 changes: 1 addition & 1 deletion code/model/composite/decorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function insert($entity, $status = null)
*
* This functions accepts either a know position or associative array of property/value pairs
*
* @param string $needle The position or the key to search for
* @param string $needle The position or the key to search for
* @return ModelEntityInterface
*/
public function find($needle)
Expand Down
10 changes: 5 additions & 5 deletions code/model/entity/interface.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,10 @@ public function isNew();
*/
public function isModified($property = null);

/**
* Test if the entity is connected to a data store
*
* @return bool
*/
/**
* Test if the entity is connected to a data store
*
* @return bool
*/
public function isConnected();
}

0 comments on commit 722ff66

Please sign in to comment.