From 582728c2e56083aa05a7faeae03f4a96c93e35c4 Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Tue, 9 Oct 2012 12:30:30 -0400
Subject: [PATCH] Style fix -- add space after "function" in closure
 definitions.

---
 module/VuFind/src/VuFind/Bootstrap.php             | 14 +++++++-------
 .../src/VuFind/Controller/SearchController.php     |  2 +-
 module/VuFind/src/VuFind/Db/Table/Tags.php         |  2 +-
 module/VuFind/src/VuFind/Db/Table/UserStats.php    |  2 +-
 .../VuFind/src/VuFind/Db/Table/UserStatsFields.php |  4 ++--
 .../VuFind/src/VuFind/RecordDriver/SolrDefault.php |  2 +-
 module/VuFind/src/VuFind/Search/Solr/Params.php    |  2 +-
 7 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/module/VuFind/src/VuFind/Bootstrap.php b/module/VuFind/src/VuFind/Bootstrap.php
index 981789e33fb..d2364aa2f3e 100644
--- a/module/VuFind/src/VuFind/Bootstrap.php
+++ b/module/VuFind/src/VuFind/Bootstrap.php
@@ -165,7 +165,7 @@ class Bootstrap
         if (isset($this->config->System->available)
             && !$this->config->System->available
         ) {
-            $callback = function($e) {
+            $callback = function ($e) {
                 $routeMatch = new RouteMatch(
                     array('controller' => 'Error', 'action' => 'Unavailable'), 1
                 );
@@ -200,7 +200,7 @@ class Bootstrap
      */
     protected function initContext()
     {
-        $callback = function($event) {
+        $callback = function ($event) {
             $serviceManager = $event->getApplication()->getServiceManager();
             $viewModel = $serviceManager->get('viewmanager')->getViewModel();
 
@@ -225,7 +225,7 @@ class Bootstrap
      */
     protected function initHeadTitle()
     {
-        $callback = function($event) {
+        $callback = function ($event) {
             $serviceManager = $event->getApplication()->getServiceManager();
             $renderer = $serviceManager->get('viewmanager')->getRenderer();
             $headTitle = $renderer->plugin('headtitle');
@@ -249,7 +249,7 @@ class Bootstrap
         }
 
         $config =& $this->config;
-        $callback = function($event) use ($config) {
+        $callback = function ($event) use ($config) {
             // Setup Translator
             $request = $event->getRequest();
             if (($language = $request->getPost()->get('mylang', false))
@@ -301,7 +301,7 @@ class Bootstrap
         // Attach remaining theme configuration to the dispatch event at high
         // priority (TODO: use priority constant once defined by framework):
         $config =& $this->config;
-        $callback = function($event) use ($config) {
+        $callback = function ($event) use ($config) {
             $theme = new ThemeInitializer($config, $event);
             $theme->init();
         };
@@ -316,7 +316,7 @@ class Bootstrap
      */
     protected function initExceptionBased404s()
     {
-        $callback = function($e) {
+        $callback = function ($e) {
             $exception = $e->getParam('exception');
             if (is_object($exception)) {
                 if ($exception instanceof \VuFind\Exception\RecordMissing) {
@@ -341,7 +341,7 @@ class Bootstrap
      */
     protected function initErrorLogging()
     {
-        $callback = function($event) {
+        $callback = function ($event) {
             $sm = $event->getApplication()->getServiceManager();
             if ($sm->has('Logger')) {
                 $log = $sm->get('Logger');
diff --git a/module/VuFind/src/VuFind/Controller/SearchController.php b/module/VuFind/src/VuFind/Controller/SearchController.php
index d1fbf1f169d..b9b12f422ac 100644
--- a/module/VuFind/src/VuFind/Controller/SearchController.php
+++ b/module/VuFind/src/VuFind/Controller/SearchController.php
@@ -451,7 +451,7 @@ class SearchController extends AbstractSearch
         $result = $this->reserves()->findReserves($course, $inst, $dept);
 
         // Build a list of unique IDs
-        $callback = function($i) {
+        $callback = function ($i) {
             return $i['BIB_ID'];
         };
         $bibIDs = array_unique(array_map($callback, $result));
diff --git a/module/VuFind/src/VuFind/Db/Table/Tags.php b/module/VuFind/src/VuFind/Db/Table/Tags.php
index 9e34b6e48bc..b586d44ae03 100644
--- a/module/VuFind/src/VuFind/Db/Table/Tags.php
+++ b/module/VuFind/src/VuFind/Db/Table/Tags.php
@@ -157,7 +157,7 @@ class Tags extends Gateway
      */
     public function getTagList($sort, $limit = 100, $extra_where = null)
     {
-        $callback = function($select) use ($sort, $limit, $extra_where) {
+        $callback = function ($select) use ($sort, $limit, $extra_where) {
             $select->columns(
                 array(
                     'id', 'tag',
diff --git a/module/VuFind/src/VuFind/Db/Table/UserStats.php b/module/VuFind/src/VuFind/Db/Table/UserStats.php
index 6bfb97334e0..6b64a7dced9 100644
--- a/module/VuFind/src/VuFind/Db/Table/UserStats.php
+++ b/module/VuFind/src/VuFind/Db/Table/UserStats.php
@@ -59,7 +59,7 @@ class UserStats extends Gateway
      */
     public function getBrowserStats($withVersions = false, $limit = 5)
     {
-        $callback = function($select) use ($withVersions, $limit) {
+        $callback = function ($select) use ($withVersions, $limit) {
             if ($withVersions) {
                 $select->columns(
                     array(
diff --git a/module/VuFind/src/VuFind/Db/Table/UserStatsFields.php b/module/VuFind/src/VuFind/Db/Table/UserStatsFields.php
index 5e15faee90b..06365e77da3 100644
--- a/module/VuFind/src/VuFind/Db/Table/UserStatsFields.php
+++ b/module/VuFind/src/VuFind/Db/Table/UserStatsFields.php
@@ -93,7 +93,7 @@ class UserStatsFields extends Gateway
         if (!is_array($fields)) {
             $fields = array($fields);
         }
-        $callback = function($select) use ($fields, $values) {
+        $callback = function ($select) use ($fields, $values) {
             $select->columns(
                 array($fields[0] => 'value')
             );
@@ -124,7 +124,7 @@ class UserStatsFields extends Gateway
      */
     public function getTop($field, $number)
     {
-        $callback = function($select) use ($field, $number) {
+        $callback = function ($select) use ($field, $number) {
             $select->columns(
                 array(
                     'value',
diff --git a/module/VuFind/src/VuFind/RecordDriver/SolrDefault.php b/module/VuFind/src/VuFind/RecordDriver/SolrDefault.php
index 08853d27c3c..9d11a3cb47b 100644
--- a/module/VuFind/src/VuFind/RecordDriver/SolrDefault.php
+++ b/module/VuFind/src/VuFind/RecordDriver/SolrDefault.php
@@ -1014,7 +1014,7 @@ class SolrDefault extends AbstractBase
         // If non-empty, map internal URL array to expected return format;
         // otherwise, return empty array:
         if (isset($this->fields['url']) && is_array($this->fields['url'])) {
-            $filter = function($url) {
+            $filter = function ($url) {
                 return array('url' => $url);
             };
             return array_map($filter, $this->fields['url']);
diff --git a/module/VuFind/src/VuFind/Search/Solr/Params.php b/module/VuFind/src/VuFind/Search/Solr/Params.php
index e293535a9d3..4f38ad1e636 100644
--- a/module/VuFind/src/VuFind/Search/Solr/Params.php
+++ b/module/VuFind/src/VuFind/Search/Solr/Params.php
@@ -433,7 +433,7 @@ class Params extends BaseParams
             return $this->setOverrideQuery('NOT *:*');
         }
 
-        $callback = function($i) {
+        $callback = function ($i) {
             return '"' . addcslashes($i, '"') . '"';
         };
         $ids = array_map($callback, $ids);
-- 
GitLab