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

Style fixes.

parent 97a022d1
No related merge requests found
...@@ -678,20 +678,20 @@ class Generator ...@@ -678,20 +678,20 @@ class Generator
// Generate 5 lines of text, 4 offset in a border color // Generate 5 lines of text, 4 offset in a border color
if ($scolor) { if ($scolor) {
imagettftext( imagettftext(
$this->im, $fontSize, 0, $x, $y + 1, $scolor, $font, $text $this->im, $fontSize, 0, $x, $y + 1, $scolor, $font, $text
); );
imagettftext( imagettftext(
$this->im, $fontSize, 0, $x, $y - 1, $scolor, $font, $text $this->im, $fontSize, 0, $x, $y - 1, $scolor, $font, $text
); );
imagettftext( imagettftext(
$this->im, $fontSize, 0, $x + 1, $y, $scolor, $font, $text $this->im, $fontSize, 0, $x + 1, $y, $scolor, $font, $text
); );
imagettftext( imagettftext(
$this->im, $fontSize, 0, $x - 1, $y, $scolor, $font, $text $this->im, $fontSize, 0, $x - 1, $y, $scolor, $font, $text
); );
} }
// 1 centered in main color // 1 centered in main color
imagettftext($this->im, $fontSize, 0, $x, $y, $mcolor, $font, $text); imagettftext($this->im, $fontSize, 0, $x, $y, $mcolor, $font, $text);
} }
/** /**
......
...@@ -79,7 +79,7 @@ class Comments extends Gateway ...@@ -79,7 +79,7 @@ class Comments extends Gateway
['u' => 'user'], 'u.id = comments.user_id', ['u' => 'user'], 'u.id = comments.user_id',
['firstname', 'lastname'] ['firstname', 'lastname']
); );
$select->where->equalTo('comments.resource_id', $resource->id); $select->where->equalTo('comments.resource_id', $resource->id);
$select->order('comments.created'); $select->order('comments.created');
}; };
......
...@@ -148,13 +148,13 @@ class Horizon extends AbstractBase ...@@ -148,13 +148,13 @@ class Horizon extends AbstractBase
if (in_array(strtolower('available:0'), $arrayValues)) { if (in_array(strtolower('available:0'), $arrayValues)) {
$available = 0; $available = 0;
} }
if (in_array(strtolower('reserve:N'), $arrayValues)) { if (in_array(strtolower('reserve:N'), $arrayValues)) {
$reserve = 'N'; $reserve = 'N';
} }
if (in_array(strtolower('reserve:Y'), $arrayValues)) { if (in_array(strtolower('reserve:Y'), $arrayValues)) {
$reserve = 'Y'; $reserve = 'Y';
} }
if (in_array(strtolower('duedate:0'), $arrayValues)) { if (in_array(strtolower('duedate:0'), $arrayValues)) {
$duedate = ''; $duedate = '';
} }
} else { } else {
...@@ -510,7 +510,7 @@ class Horizon extends AbstractBase ...@@ -510,7 +510,7 @@ class Horizon extends AbstractBase
$sqlStmt = mssql_query($sql); $sqlStmt = mssql_query($sql);
$row = mssql_fetch_assoc($sqlStmt); $row = mssql_fetch_assoc($sqlStmt);
if ($row) { if ($row) {
list($lastname,$firstname) = explode(', ', $row['FULLNAME']); list($lastname, $firstname) = explode(', ', $row['FULLNAME']);
$user = ['id' => $username, $user = ['id' => $username,
'firstname' => $firstname, 'firstname' => $firstname,
'lastname' => $lastname, 'lastname' => $lastname,
...@@ -807,7 +807,7 @@ class Horizon extends AbstractBase ...@@ -807,7 +807,7 @@ class Horizon extends AbstractBase
$row = mssql_fetch_assoc($sqlStmt); $row = mssql_fetch_assoc($sqlStmt);
if ($row) { if ($row) {
list($lastname,$firstname) = explode(', ', $row['FULLNAME']); list($lastname, $firstname) = explode(', ', $row['FULLNAME']);
$profile = ['lastname' => $lastname, $profile = ['lastname' => $lastname,
'firstname' => $firstname, 'firstname' => $firstname,
'address1' => $row['ADDRESS1'], 'address1' => $row['ADDRESS1'],
......
...@@ -424,7 +424,7 @@ class LBS4 extends DAIA implements TranslatorAwareInterface ...@@ -424,7 +424,7 @@ class LBS4 extends DAIA implements TranslatorAwareInterface
$fine = $this->picaRecode($row[5]); $fine = $this->picaRecode($row[5]);
$amount = (null == $row[2]) ? 0 : $row[2] * 100; $amount = (null == $row[2]) ? 0 : $row[2] * 100;
//$balance = (null==$row[3])?0:$row[3]*100; //$balance = (null==$row[3])?0:$row[3]*100;
$checkout = substr($row[3], 0, 12); $checkout = substr($row[3], 0, 12);
$duedate = substr($row[4], 0, 12); $duedate = substr($row[4], 0, 12);
$title = $this->picaRecode(substr($row[6], 0, 12)); $title = $this->picaRecode(substr($row[6], 0, 12));
$result[] = [ $result[] = [
......
...@@ -1201,7 +1201,7 @@ class Symphony extends AbstractBase implements LoggerAwareInterface ...@@ -1201,7 +1201,7 @@ class Symphony extends AbstractBase implements LoggerAwareInterface
$group = null; $group = null;
} }
list($lastname,$firstname) list($lastname, $firstname)
= explode(', ', $result->patronInfo->displayName); = explode(', ', $result->patronInfo->displayName);
$profile = [ $profile = [
......
...@@ -139,12 +139,12 @@ class AdvancedSearchTest extends \VuFindTest\Unit\MinkTestCase ...@@ -139,12 +139,12 @@ class AdvancedSearchTest extends \VuFindTest\Unit\MinkTestCase
// Test edit search // Test edit search
$this->editAdvancedSearch($page); $this->editAdvancedSearch($page);
$this->assertEquals('bride', $this->findCss($page, '#search_lookfor0_0')->getValue()); $this->assertEquals('bride', $this->findCss($page, '#search_lookfor0_0')->getValue());
$this->assertEquals('tomb', $this->findCss($page, '#search_lookfor0_1')->getValue()); $this->assertEquals('tomb', $this->findCss($page, '#search_lookfor0_1')->getValue());
$this->assertEquals('Title', $this->findCss($page, '#search_type0_1')->getValue()); $this->assertEquals('Title', $this->findCss($page, '#search_type0_1')->getValue());
$this->assertEquals('garbage', $this->findCss($page, '#search_lookfor0_2')->getValue()); $this->assertEquals('garbage', $this->findCss($page, '#search_lookfor0_2')->getValue());
$this->assertEquals('1883', $this->findCss($page, '#search_lookfor0_3')->getValue()); $this->assertEquals('1883', $this->findCss($page, '#search_lookfor0_3')->getValue());
$this->assertEquals('year', $this->findCss($page, '#search_type0_3')->getValue()); $this->assertEquals('year', $this->findCss($page, '#search_type0_3')->getValue());
$this->assertEquals('miller', $this->findCss($page, '#search_lookfor1_0')->getValue()); $this->assertEquals('miller', $this->findCss($page, '#search_lookfor1_0')->getValue());
// Term removal // Term removal
$session->executeScript("deleteSearch(0, 2)"); // search0_2 x click $session->executeScript("deleteSearch(0, 2)"); // search0_2 x click
...@@ -167,6 +167,6 @@ class AdvancedSearchTest extends \VuFindTest\Unit\MinkTestCase ...@@ -167,6 +167,6 @@ class AdvancedSearchTest extends \VuFindTest\Unit\MinkTestCase
// Test edit search (modified search is restored properly) // Test edit search (modified search is restored properly)
$this->editAdvancedSearch($page); $this->editAdvancedSearch($page);
$this->assertEquals('miller', $this->findCss($page, '#search_lookfor0_0')->getValue()); $this->assertEquals('miller', $this->findCss($page, '#search_lookfor0_0')->getValue());
} }
} }
...@@ -132,9 +132,9 @@ class SearchTabsHelperTest extends TestCase ...@@ -132,9 +132,9 @@ class SearchTabsHelperTest extends TestCase
{ {
$helper = $this->getSearchTabsHelper(); $helper = $this->getSearchTabsHelper();
$this->assertEquals( $this->assertEquals(
$this->tabConfig['default_unfiltered'], $helper->getTabConfig() $this->tabConfig['default_unfiltered'], $helper->getTabConfig()
); );
$this->assertEquals($this->filterConfig, $helper->getTabFilterConfig()); $this->assertEquals($this->filterConfig, $helper->getTabFilterConfig());
} }
/** /**
......
...@@ -238,7 +238,7 @@ abstract class EdsApi_REST_Base ...@@ -238,7 +238,7 @@ abstract class EdsApi_REST_Base
$authInfo['orgid'] = $org; $authInfo['orgid'] = $org;
} }
$messageBody = json_encode($authInfo); $messageBody = json_encode($authInfo);
return $this->call($url, null, null, 'POST', $messageBody); return $this->call($url, null, null, 'POST', $messageBody);
} }
/** /**
......
...@@ -59,9 +59,9 @@ class LessCompilerTest extends Unit\TestCase ...@@ -59,9 +59,9 @@ class LessCompilerTest extends Unit\TestCase
$temp = sys_get_temp_dir(); $temp = sys_get_temp_dir();
$testDest = $temp . '/vufind_less_comp_test/'; $testDest = $temp . '/vufind_less_comp_test/';
// Create directory structure, recursively // Create directory structure, recursively
mkdir($testDest . 'themes/child/less', 0777, true); mkdir($testDest . 'themes/child/less', 0777, true);
mkdir($testDest . 'themes/empty', 0777, true); mkdir($testDest . 'themes/empty', 0777, true);
mkdir($testDest . 'themes/parent/css', 0777, true); mkdir($testDest . 'themes/parent/css', 0777, true);
mkdir($testDest . 'themes/parent/less/relative', 0777, true); mkdir($testDest . 'themes/parent/less/relative', 0777, true);
file_put_contents( file_put_contents(
$testDest . 'themes/empty/theme.config.php', $testDest . 'themes/empty/theme.config.php',
......
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