From cd615e18962c54fbf760b2ac8c221a0b483eb462 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Sat, 23 May 2015 08:01:22 +0200 Subject: [PATCH] src: whitespace and style --- scripts/cleanfile | 2 +- .../TrafficShaper/Api/SettingsController.php | 1 - .../mvc/app/library/OPNsense/Base/UIModelGrid.php | 13 +++++++++---- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/scripts/cleanfile b/scripts/cleanfile index 150b7600c..9274bb69d 100755 --- a/scripts/cleanfile +++ b/scripts/cleanfile @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl # # Clean a text file -- or directory of text files -- of stealth whitespace. # WARNING: this can be a highly destructive operation. Use with caution. diff --git a/src/opnsense/mvc/app/controllers/OPNsense/TrafficShaper/Api/SettingsController.php b/src/opnsense/mvc/app/controllers/OPNsense/TrafficShaper/Api/SettingsController.php index cff475c8e..02dce54b5 100644 --- a/src/opnsense/mvc/app/controllers/OPNsense/TrafficShaper/Api/SettingsController.php +++ b/src/opnsense/mvc/app/controllers/OPNsense/TrafficShaper/Api/SettingsController.php @@ -88,5 +88,4 @@ class SettingsController extends ApiControllerBase } } - } diff --git a/src/opnsense/mvc/app/library/OPNsense/Base/UIModelGrid.php b/src/opnsense/mvc/app/library/OPNsense/Base/UIModelGrid.php index f4fb091f0..71d496dc7 100644 --- a/src/opnsense/mvc/app/library/OPNsense/Base/UIModelGrid.php +++ b/src/opnsense/mvc/app/library/OPNsense/Base/UIModelGrid.php @@ -58,8 +58,14 @@ class UIModelGrid * @param string $searchPhrase search phrase to use * @return array */ - public function fetch($fields, $itemsPerPage, $currentPage, $sortBy = array(), $sortDescending = false, $searchPhrase = '') - { + public function fetch( + $fields, + $itemsPerPage, + $currentPage, + $sortBy = array(), + $sortDescending = false, + $searchPhrase = '' + ) { $result = array('rows'=>array()); $recordIndex = 0; @@ -109,5 +115,4 @@ class UIModelGrid return $result; } - -} \ No newline at end of file +}