Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
Consistently indent class and function braces
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Snape committed Jun 11, 2014
1 parent 277f6ac commit b28667c
Show file tree
Hide file tree
Showing 508 changed files with 988 additions and 1,159 deletions.
2 changes: 1 addition & 1 deletion core/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,4 +216,4 @@ public function optionsAction()
$this->_response->setHeader('Allow', 'OPTIONS');
}

} //end class
} // end class
2 changes: 1 addition & 1 deletion core/AppController.php
Original file line number Diff line number Diff line change
Expand Up @@ -668,4 +668,4 @@ protected function t($text)
var $Setting;

/**end completion eclipse */
}//end class
} // end class
2 changes: 1 addition & 1 deletion core/AppForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ protected function t($text)
Zend_Loader::loadClass("InternationalizationComponent", BASE_PATH.'/core/controllers/components');
return InternationalizationComponent::translate($text);
}//en method t
}//end class
} // end class
4 changes: 2 additions & 2 deletions core/GlobalComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Provides global function to the components
*/
class MIDAS_GlobalComponent extends Zend_Controller_Action_Helper_Abstract
{
{
/**
* Get Logger
* @return Zend_Log
Expand All @@ -32,4 +32,4 @@ public function getLogger()
{
return Zend_Registry::get('logger');
}
} // end class
} // end class
4 changes: 2 additions & 2 deletions core/GlobalController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
See the License for the specific language governing permissions and
limitations under the License.
=========================================================================*/

require_once BASE_PATH.'/core/controllers/components/UtilityComponent.php';

/**
Expand All @@ -25,7 +26,6 @@
*/
class MIDAS_GlobalController extends Zend_Controller_Action
{

protected $Models = array();

/** contructor*/
Expand Down Expand Up @@ -345,4 +345,4 @@ public function getFormAsArray(Zend_Form $form)
}
return $array;
}
} // end class
} // end class
4 changes: 2 additions & 2 deletions core/MidasLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* It handles importing the required file and instantiating the object of the desired type.
*/
class MidasLoader
{
{
/**
* Load a component
* @param component The name of the component to load
Expand Down Expand Up @@ -187,4 +187,4 @@ public static function newDao($name, $module = 'core')
return new $classname;
}
}
} // end class
} // end class
2 changes: 1 addition & 1 deletion core/Notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,4 @@ public function tokenAuth($params)
$token = $params['authToken'];
return $this->Component->Authentication->getUser(array('token' => $token), null);
}
} //end class
} // end class
5 changes: 2 additions & 3 deletions core/controllers/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* Admin Controller
*/
class AdminController extends AppController
{
{
public $_models = array('Assetstore', 'Bitstream', 'Errorlog', 'Item', 'ItemRevision', 'Folder', 'License');
public $_daos = array();
public $_components = array('Upgrade', 'Utility', 'MIDAS2Migration', 'Demo');
Expand Down Expand Up @@ -715,5 +715,4 @@ function migratemidas2Action()

// Display the form
}

} // end class
} // end class
5 changes: 2 additions & 3 deletions core/controllers/ApidocsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* Apidocs Controller for WebApi
**/
class ApidocsController extends AppController
{
{
public $_components = array('Apidocs');

/** init api actions*/
Expand Down Expand Up @@ -79,5 +79,4 @@ public function __call($name, $args)
$results = $this->Component->Apidocs->getResourceApiDocs($resource, $module);
echo JsonComponent::encode($results);
}

}
}
5 changes: 2 additions & 3 deletions core/controllers/ApikeyController.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

/** Apikey controller for Web Api */
class ApikeyController extends AppController
{
{
public $_models = array('User', 'Userapi');
public $_forms = array('Apikey');
public $_components = array('Date');
Expand Down Expand Up @@ -92,5 +92,4 @@ function usertabAction()
$this->view->userapiDaos = $userapiDaos;
$this->view->user = $user;
}

}//end class
} // end class
4 changes: 1 addition & 3 deletions core/controllers/AssetstoreController.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
*/
class AssetstoreController extends AppController
{

public $_models = array('Assetstore', 'Bitstream', 'Progress', 'Setting');
public $_daos = array('Assetstore');
public $_components = array('Utility');
Expand Down Expand Up @@ -262,5 +261,4 @@ function movecontentsAction()

echo JsonComponent::encode(array('status' => 'ok', 'message' => 'Bitstreams moved'));
}
} // end class

} // end class
4 changes: 2 additions & 2 deletions core/controllers/BrowseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* AJAX request for the admin Controller
*/
class BrowseController extends AppController
{
{
public $_models = array('User', 'Community', 'Folder', 'Item', 'ItemRevision');
public $_daos = array('User', 'Community', 'Folder', 'Item');
public $_components = array('Date', 'Utility', 'Sortdao');
Expand Down Expand Up @@ -645,4 +645,4 @@ public function deleteAction()
}
echo JsonComponent::encode($resp);
}
} // end class
} // end class
2 changes: 1 addition & 1 deletion core/controllers/CommunityController.php
Original file line number Diff line number Diff line change
Expand Up @@ -814,4 +814,4 @@ public function selectgroupAction()
}
}
}
}//end class
} // end class
4 changes: 2 additions & 2 deletions core/controllers/DownloadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* Controller for downloading elements.
*/
class DownloadController extends AppController
{
{
public $_models = array('Folder', 'Item', 'Community', 'User', 'Bitstream');
public $_daos = array();
public $_components = array('DownloadBitstream');
Expand Down Expand Up @@ -546,4 +546,4 @@ private function _downloadEmptyItem($item)
$zip->finish();
exit();
}
} // end class
} // end class
4 changes: 2 additions & 2 deletions core/controllers/ErrorController.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

/** Error Controller*/
class ErrorController extends AppController
{
{
public $_models = array();
public $_daos = array();
public $_components = array('NotifyError', 'Utility');
Expand Down Expand Up @@ -154,4 +154,4 @@ private function _applicationError()
$this->view->message = nl2br($fullMessage);
}
}
}
}
8 changes: 3 additions & 5 deletions core/controllers/FeedController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* AJAX request for the admin Controller
*/
class FeedController extends AppController
{
{
public $_models = array('Feed', 'Item', 'User', 'Community');
public $_daos = array();
public $_components = array();
Expand Down Expand Up @@ -87,7 +87,5 @@ public function deleteajaxAction()
return;
}
$this->Feed->delete($feed);
}//end deleteajaxAction

} // end class

} //end deleteajaxAction
} // end class
2 changes: 1 addition & 1 deletion core/controllers/FolderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -420,4 +420,4 @@ public function createfolderAction()
}
}// end createfolderAction

}//end class
} // end class
2 changes: 1 addition & 1 deletion core/controllers/ImportController.php
Original file line number Diff line number Diff line change
Expand Up @@ -419,4 +419,4 @@ function stopAction()
return false;
} // end stopAction

} // end class
} // end class
2 changes: 1 addition & 1 deletion core/controllers/IndexController.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ function nobrowserAction()
$this->disableLayout();
} // end method indexAction

}//end class
} // end class
6 changes: 2 additions & 4 deletions core/controllers/InstallController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* InstallController
*/
class InstallController extends AppController
{
{
public $_models = array('User', 'Assetstore');
public $_daos = array('Assetstore');
public $_components = array('Utility');
Expand Down Expand Up @@ -353,6 +353,4 @@ public function testconnexionAction()
}
echo JsonComponent::encode($return);
}//end getElementInfo

} // end class

} // end class
2 changes: 1 addition & 1 deletion core/controllers/ItemController.php
Original file line number Diff line number Diff line change
Expand Up @@ -722,4 +722,4 @@ public function thumbnailAction()
$downloadBitstreamComponent->download($bitstream);
}
}
}//end class
} // end class
3 changes: 1 addition & 2 deletions core/controllers/LicenseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
*/
class LicenseController extends AppController
{

public $_models = array('License');
public $_daos = array('License');
public $_components = array();
Expand Down Expand Up @@ -123,4 +122,4 @@ function createAction()
$this->License->save($license);
echo JsonComponent::encode(array(true, 'Created new license'));
}
}
}
3 changes: 1 addition & 2 deletions core/controllers/ProgressController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
*/
class ProgressController extends AppController
{

public $_models = array('Progress');
public $_daos = array();
public $_components = array();
Expand Down Expand Up @@ -76,4 +75,4 @@ public function getAction()
echo JsonComponent::encode($progress->toArray());
}
}
}
}
5 changes: 2 additions & 3 deletions core/controllers/SearchController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* Search controller
*/
class SearchController extends AppController
{
{
public $_models = array('Item', 'Folder', 'User', 'Community', 'Group');
public $_daos = array('Item', 'Folder', 'User', 'Community');
public $_components = array('Sortdao', 'Date', 'Utility', 'Search');
Expand Down Expand Up @@ -336,6 +336,5 @@ public function liveAction()

echo JsonComponent::encode($results);
}

} // end class
} // end class

2 changes: 1 addition & 1 deletion core/controllers/ShareController.php
Original file line number Diff line number Diff line change
Expand Up @@ -378,5 +378,5 @@ function linksAction()
$this->view->viewUrl = $baseUrl.'/'.$type.'/'.$id;
$this->view->downloadUrl = $baseUrl.'/download/'.$type.'/'.$id.'/'.urlencode($name);
}
}//end class
} // end class

2 changes: 1 addition & 1 deletion core/controllers/UploadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -788,4 +788,4 @@ public function reviewAction()
$this->_redirect('/community/');
}
}
}//end class
} // end class
2 changes: 1 addition & 1 deletion core/controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1284,4 +1284,4 @@ public function deleteAction()
$this->getLogger()->info('User '.$name.' successfully deleted');
echo JsonComponent::encode(array(true, 'User '.$name.' successfully deleted'));
}
}//end class
} // end class
4 changes: 2 additions & 2 deletions core/controllers/api/BitstreamController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* WebApi Controller for Bitstream Resource
*/
class Rest_BitstreamController extends ApiController
{
{
/**
* The index action handles index/list requests; it should respond with a
* list of the requested resources.
Expand Down Expand Up @@ -91,4 +91,4 @@ public function deleteAction()
$apiFunctions['default'] = 'bitstreamDelete';
$this->_genericAction($this->_request->getParams(), $this->_request->getControllerName(), 'delete', $apiFunctions);
}
}
}
6 changes: 2 additions & 4 deletions core/controllers/api/CommunityController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
* WebApi Controller for Community Resource
*/
class Rest_CommunityController extends ApiController
{

{
/**
* The index action handles index/list requests; it should respond with a
* list of the requested resources.
Expand Down Expand Up @@ -89,5 +88,4 @@ public function optionsAction()
{
$this->_response->setHeader('Allow', 'OPTIONS, HEAD, GET, POST, DELETE');
}

}
}
5 changes: 2 additions & 3 deletions core/controllers/api/FolderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* WebApi Controller for Folder Resource
*/
class Rest_FolderController extends ApiController
{
{
/**
* The index action handles index/list requests; it should respond with a
* list of the requested resources.
Expand Down Expand Up @@ -107,5 +107,4 @@ public function optionsAction()
{
$this->_response->setHeader('Allow', 'OPTIONS, HEAD, GET, POST, PUT, DELETE');
}

}
}
5 changes: 2 additions & 3 deletions core/controllers/api/GroupController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* WebApi Controller for Group Resource
*/
class Rest_GroupController extends ApiController
{
{
/**
* The index action handles index/list requests; it should respond with a
* list of the requested resources.
Expand Down Expand Up @@ -98,5 +98,4 @@ public function optionsAction()
{
$this->_response->setHeader('Allow', 'OPTIONS, HEAD, GET, PUT, POST, DELETE');
}

}
}
4 changes: 2 additions & 2 deletions core/controllers/api/IndexController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* Index Controller for WebApi
**/
class Rest_IndexController extends AppController
{
{
public function preDispatch()
{
parent::preDispatch();
Expand All @@ -38,4 +38,4 @@ function indexAction()
$this->view->header = $header;
$this->view->serverURL = $this->getServerURL();
}
}
}
Loading

0 comments on commit b28667c

Please sign in to comment.