Skip to content
Snippets Groups Projects
Commit bd8f00dd authored by Demian Katz's avatar Demian Katz
Browse files

Style fixes.

parent a7b05030
Branches
Tags
No related merge requests found
...@@ -724,7 +724,7 @@ class ClaviusSQL extends AbstractBase ...@@ -724,7 +724,7 @@ class ClaviusSQL extends AbstractBase
$char = substr($pin, $i, 1); $char = substr($pin, $i, 1);
$return = 1 + intval($char) + $return * 12; $return = 1 + intval($char) + $return * 12;
} }
return 2109876543 - $return * 7 * (intval($patron) % 89 + 7); return 2109876543 - $return * 7 * (intval($patron) % 89 + 7);
} }
/** /**
......
...@@ -1735,7 +1735,7 @@ class PAIA extends DAIA ...@@ -1735,7 +1735,7 @@ class PAIA extends DAIA
public function checkRequestIsValid($id, $data, $patron) public function checkRequestIsValid($id, $data, $patron)
{ {
// TODO: make this more configurable // TODO: make this more configurable
if (isset($patron['status']) && $patron['status'] == 0 if (isset($patron['status']) && $patron['status'] == 0
&& isset($patron['expires']) && $patron['expires'] > date('Y-m-d') && isset($patron['expires']) && $patron['expires'] > date('Y-m-d')
&& in_array('write_items', $this->getScope()) && in_array('write_items', $this->getScope())
) { ) {
......
...@@ -719,7 +719,7 @@ class Params ...@@ -719,7 +719,7 @@ class Params
$value = count($temp) > 0 ? $temp[0] : ''; $value = count($temp) > 0 ? $temp[0] : '';
// Remove quotes from the value if there are any // Remove quotes from the value if there are any
if (substr($value, 0, 1) == '"') { if (substr($value, 0, 1) == '"') {
$value = substr($value, 1); $value = substr($value, 1);
} }
if (substr($value, -1, 1) == '"') { if (substr($value, -1, 1) == '"') {
......
...@@ -459,7 +459,7 @@ class Options extends \VuFind\Search\Base\Options ...@@ -459,7 +459,7 @@ class Options extends \VuFind\Search\Base\Options
'Label' => $mode['Label'], 'Value' => $mode['Mode'] 'Label' => $mode['Label'], 'Value' => $mode['Mode']
]; ];
if (isset($mode['DefaultOn']) if (isset($mode['DefaultOn'])
&& 'y' == $mode['DefaultOn'] && 'y' == $mode['DefaultOn']
) { ) {
$this->defaultMode = $mode['Mode']; $this->defaultMode = $mode['Mode'];
} }
......
...@@ -53,7 +53,7 @@ class FacetFormatter extends BaseFormatter ...@@ -53,7 +53,7 @@ class FacetFormatter extends BaseFormatter
foreach ($request['facetFilter'] as $filter) { foreach ($request['facetFilter'] as $filter) {
list($facetField, $regex) = explode(':', $filter, 2); list($facetField, $regex) = explode(':', $filter, 2);
$regex = trim($regex); $regex = trim($regex);
if (substr($regex, 0, 1) == '"') { if (substr($regex, 0, 1) == '"') {
$regex = substr($regex, 1); $regex = substr($regex, 1);
} }
if (substr($regex, -1, 1) == '"') { if (substr($regex, -1, 1) == '"') {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment