Skip to content

Commit

Permalink
MINOR: More Scrutinizer fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
phptek committed Jun 23, 2016
1 parent 1f0d306 commit 75b5761
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ checks:
duplication: true

filter:
paths: [code/*]
paths: [code/*, tests/*]
2 changes: 1 addition & 1 deletion code/backends/PostgresJSONBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function matchOnPath()

$keys = array_keys($operandAsArray);
$vals = array_values($operandAsArray);
if (count($keys) >1 || count($vals) >1) {
if (count($keys) > 1 || count($vals) > 1) {
$msg = 'Sorry. I can\'t handle complex operands.';
throw new JSONTextException($msg);
}
Expand Down
4 changes: 2 additions & 2 deletions code/models/fieldtypes/JSONText.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public function scaffoldFormField($title = null)
* Tell all class methods to return data as JSON , an array or an array of SilverStripe DBField subtypes.
*
* @param string $type
* @return \JSONText
* @return JSONText
* @throws \JSONText\Exceptions\JSONTextException
*/
public function setReturnType($type)
Expand Down Expand Up @@ -208,7 +208,7 @@ public function isJson($value)
* Convert an array to JSON via json_encode().
*
* @param array $value
* @return mixed null|string
* @return string null|string
*/
public function toJson(array $value)
{
Expand Down

0 comments on commit 75b5761

Please sign in to comment.