Skip to content

Commit

Permalink
The method should be static.
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier Lorenzana committed Nov 22, 2014
1 parent f6983f9 commit f155c6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions JsonApi/Request/BodyParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public function __construct(
*/
public function parse(Request $request, Params $params)
{
// @todo Use $params->action!!
switch ($request->getMethod()) {
case Parser::HTTP_POST:
$data = $this->createBodyParser->parse($request, $params);
Expand Down
2 changes: 1 addition & 1 deletion Util/ArrayHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class ArrayHelper
* @todo Move to helper in utils.
* @see http://stackoverflow.com/a/173479
*/
public function isAssociative(array $array)
public static function isAssociative(array $array)
{
return array_keys($array) !== range(0, count($array) - 1);
}
Expand Down

0 comments on commit f155c6b

Please sign in to comment.