diff options
| author | 2013-11-04 20:48:38 +0100 | |
|---|---|---|
| committer | 2013-11-04 23:34:07 +0100 | |
| commit | 5e1109312044b41932e14eb2e8e9ad9497d2ac61 (patch) | |
| tree | ee2bf0d13cc40ceb28bab7423c9f896574f60645 | |
| parent | 4a999fb6286bafcd070a1ebe53ceb5effacc8b59 (diff) | |
Détails : blancs
Suppression des blancs en fin de ligne
| -rwxr-xr-x | app/models/Category.php | 8 | ||||
| -rwxr-xr-x | app/models/RSSConfiguration.php | 12 | ||||
| -rw-r--r-- | app/views/helpers/view/normal_view.phtml | 2 | ||||
| -rw-r--r-- | app/views/helpers/view/reader_view.phtml | 2 | ||||
| -rwxr-xr-x | app/views/helpers/view/rss_view.phtml | 2 | ||||
| -rw-r--r-- | lib/lib_phpQuery.php | 42 | ||||
| -rw-r--r-- | lib/lib_rss.php | 20 | ||||
| -rw-r--r-- | lib/lib_text.php | 2 | ||||
| -rw-r--r-- | lib/minz/Request.php | 40 | ||||
| -rwxr-xr-x | lib/minz/Url.php | 10 | ||||
| -rwxr-xr-x | public/index.php | 6 |
11 files changed, 73 insertions, 73 deletions
diff --git a/app/models/Category.php b/app/models/Category.php index ebe55a837..7659e68f6 100755 --- a/app/models/Category.php +++ b/app/models/Category.php @@ -37,7 +37,7 @@ class Category extends Model { } public function nbFeed () { if ($this->nbFeed < 0) { - $catDAO = new CategoryDAO (); + $catDAO = new CategoryDAO (); $this->nbFeed = $catDAO->countFeed ($this->id ()); } @@ -45,7 +45,7 @@ class Category extends Model { } public function nbNotRead () { if ($this->nbNotRead < 0) { - $catDAO = new CategoryDAO (); + $catDAO = new CategoryDAO (); $this->nbNotRead = $catDAO->countNotRead ($this->id ()); } @@ -181,7 +181,7 @@ class CategoryDAO extends Model_pdo { . 'COUNT(CASE WHEN e.is_read = 0 THEN 1 END) AS nbNotRead, ' . 'COUNT(e.id) AS nbEntries, ' . 'f.* ' - . 'FROM ' . $this->prefix . 'category c ' + . 'FROM ' . $this->prefix . 'category c ' . 'LEFT OUTER JOIN ' . $this->prefix . 'feed f ON f.category = c.id ' . 'LEFT OUTER JOIN ' . $this->prefix . 'entry e ON e.id_feed = f.id ' . 'GROUP BY f.id ' @@ -290,7 +290,7 @@ class HelperCategory { $cat->_id ($previousLine['c_id']); $list[] = $cat; - $feedsDao = array(); //Prepare for next category + $feedsDao = array(); //Prepare for next category } $previousLine = $line; diff --git a/app/models/RSSConfiguration.php b/app/models/RSSConfiguration.php index 4a99dfd2e..289538fd5 100755 --- a/app/models/RSSConfiguration.php +++ b/app/models/RSSConfiguration.php @@ -10,7 +10,7 @@ class RSSConfiguration extends Model { private $view_mode; private $default_view; private $display_posts; - private $onread_jump_next; + private $onread_jump_next; private $lazyload; private $sort_order; private $old_entries; @@ -32,7 +32,7 @@ class RSSConfiguration extends Model { private $bottomline_tags; private $bottomline_date; private $bottomline_link; - + public function __construct () { $confDAO = new RSSConfigurationDAO (); $this->_language ($confDAO->language); @@ -40,7 +40,7 @@ class RSSConfiguration extends Model { $this->_viewMode ($confDAO->view_mode); $this->_defaultView ($confDAO->default_view); $this->_displayPosts ($confDAO->display_posts); - $this->_onread_jump_next ($confDAO->onread_jump_next); + $this->_onread_jump_next ($confDAO->onread_jump_next); $this->_lazyload ($confDAO->lazyload); $this->_sortOrder ($confDAO->sort_order); $this->_oldEntries ($confDAO->old_entries); @@ -63,7 +63,7 @@ class RSSConfiguration extends Model { $this->_bottomline_date ($confDAO->bottomline_date); $this->_bottomline_link ($confDAO->bottomline_link); } - + public function availableLanguages () { return $this->available_languages; } @@ -431,12 +431,12 @@ class RSSConfigurationDAO extends Model_array { $this->bottomline_link = $this->array['bottomline_link']; } } - + public function update ($values) { foreach ($values as $key => $value) { $this->array[$key] = $value; } - + $this->writeFile($this->array); } } diff --git a/app/views/helpers/view/normal_view.phtml b/app/views/helpers/view/normal_view.phtml index 46547587f..4a2671ece 100644 --- a/app/views/helpers/view/normal_view.phtml +++ b/app/views/helpers/view/normal_view.phtml @@ -141,7 +141,7 @@ if (isset ($this->entryPaginator) && !$this->entryPaginator->isEmpty ()) { </div> </div> <?php } ?> - + <?php $this->entryPaginator->render ('pagination.phtml', 'next'); ?> </div> diff --git a/app/views/helpers/view/reader_view.phtml b/app/views/helpers/view/reader_view.phtml index 7b1e2bca0..df5621865 100644 --- a/app/views/helpers/view/reader_view.phtml +++ b/app/views/helpers/view/reader_view.phtml @@ -37,7 +37,7 @@ if (isset ($this->entryPaginator) && !$this->entryPaginator->isEmpty ()) { </div> </div> <?php } ?> - + <?php $this->entryPaginator->render ('pagination.phtml', 'next'); ?> </div> diff --git a/app/views/helpers/view/rss_view.phtml b/app/views/helpers/view/rss_view.phtml index 8ce636918..10516e21d 100755 --- a/app/views/helpers/view/rss_view.phtml +++ b/app/views/helpers/view/rss_view.phtml @@ -24,7 +24,7 @@ foreach ($items as $item) { <pubDate><?php echo date('D, d M Y H:i:s O', $item->date (true)); ?></pubDate> <guid isPermaLink="false"><?php echo $item->id (); ?></guid> </item> -<?php } ?> +<?php } ?> </channel> </rss> diff --git a/lib/lib_phpQuery.php b/lib/lib_phpQuery.php index 4aefb70fe..194efa0c6 100644 --- a/lib/lib_phpQuery.php +++ b/lib/lib_phpQuery.php @@ -280,7 +280,7 @@ class DOMDocumentWrapper { // @see http://www.w3.org/International/O-HTTP-charset if (! $documentCharset) { $documentCharset = 'ISO-8859-1'; - $addDocumentCharset = true; + $addDocumentCharset = true; } // Should be careful here, still need 'magic encoding detection' since lots of pages have other 'default encoding' // Worse, some pages can have mixed encodings... we'll try not to worry about that @@ -567,7 +567,7 @@ class DOMDocumentWrapper { // if ($fake === false) // throw new Exception("Error loading documentFragment markup"); // else -// $return = array_merge($return, +// $return = array_merge($return, // $this->import($fake->root->childNodes) // ); // } else { @@ -969,24 +969,24 @@ interface ICallbackNamed { } /** * Callback class introduces currying-like pattern. - * + * * Example: * function foo($param1, $param2, $param3) { * var_dump($param1, $param2, $param3); * } - * $fooCurried = new Callback('foo', - * 'param1 is now statically set', + * $fooCurried = new Callback('foo', + * 'param1 is now statically set', * new CallbackParam, new CallbackParam * ); * phpQuery::callbackRun($fooCurried, * array('param2 value', 'param3 value' * ); - * - * Callback class is supported in all phpQuery methods which accepts callbacks. + * + * Callback class is supported in all phpQuery methods which accepts callbacks. * * @link http://code.google.com/p/phpquery/wiki/Callbacks#Param_Structures * @author Tobiasz Cudnik <tobiasz.cudnik/gmail.com> - * + * * @TODO??? return fake forwarding function created via create_function * @TODO honor paramStructure */ @@ -995,7 +995,7 @@ class Callback public $callback = null; public $params = null; protected $name; - public function __construct($callback, $param1 = null, $param2 = null, + public function __construct($callback, $param1 = null, $param2 = null, $param3 = null) { $params = func_get_args(); $params = array_slice($params, 1); @@ -1024,11 +1024,11 @@ class Callback } /** * Shorthand for new Callback(create_function(...), ...); - * + * * @author Tobiasz Cudnik <tobiasz.cudnik/gmail.com> */ class CallbackBody extends Callback { - public function __construct($paramList, $code, $param1 = null, $param2 = null, + public function __construct($paramList, $code, $param1 = null, $param2 = null, $param3 = null) { $params = func_get_args(); $params = array_slice($params, 2); @@ -1038,7 +1038,7 @@ class CallbackBody extends Callback { } /** * Callback type which on execution returns reference passed during creation. - * + * * @author Tobiasz Cudnik <tobiasz.cudnik/gmail.com> */ class CallbackReturnReference extends Callback @@ -1060,7 +1060,7 @@ class CallbackReturnReference extends Callback } /** * Callback type which on execution returns value passed during creation. - * + * * @author Tobiasz Cudnik <tobiasz.cudnik/gmail.com> */ class CallbackReturnValue extends Callback @@ -1087,7 +1087,7 @@ class CallbackReturnValue extends Callback } /** * CallbackParameterToReference can be used when we don't really want a callback, - * only parameter passed to it. CallbackParameterToReference takes first + * only parameter passed to it. CallbackParameterToReference takes first * parameter's value and passes it to reference. * * @author Tobiasz Cudnik <tobiasz.cudnik/gmail.com> @@ -1095,7 +1095,7 @@ class CallbackReturnValue extends Callback class CallbackParameterToReference extends Callback { /** * @param $reference - * @TODO implement $paramIndex; + * @TODO implement $paramIndex; * param index choose which callback param will be passed to reference */ public function __construct(&$reference){ @@ -2994,7 +2994,7 @@ class phpQueryObject } /** * Enter description here... - * + * * @param $code * @return unknown_type */ @@ -3005,7 +3005,7 @@ class phpQueryObject } /** * Enter description here... - * + * * @param $code * @return unknown_type */ @@ -4034,7 +4034,7 @@ class phpQueryObject } /** * Enter description here... - * + * * @param <type> $key * @param <type> $value */ @@ -4051,7 +4051,7 @@ class phpQueryObject } /** * Enter description here... - * + * * @param <type> $key */ public function removeData($key) { @@ -4392,8 +4392,8 @@ if (!function_exists('mb_substr_count')) */ abstract class phpQuery { /** - * XXX: Workaround for mbstring problems - * + * XXX: Workaround for mbstring problems + * * @var bool */ public static $mbstringSupport = true; diff --git a/lib/lib_rss.php b/lib/lib_rss.php index 41e95fc90..7f22c8244 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -43,17 +43,17 @@ function get_domain ($url) { function opml_export ($cats) { $txt = ''; - + foreach ($cats as $cat) { $txt .= '<outline text="' . $cat['name'] . '">' . "\n"; - + foreach ($cat['feeds'] as $feed) { $txt .= "\t" . '<outline text="' . cleanText ($feed->name ()) . '" type="rss" xmlUrl="' . htmlentities ($feed->url (), ENT_COMPAT, 'UTF-8') . '" htmlUrl="' . htmlentities ($feed->website (), ENT_COMPAT, 'UTF-8') . '" />' . "\n"; } - + $txt .= '</outline>' . "\n"; } - + return $txt; } @@ -79,13 +79,13 @@ function opml_import ($xml) { if (!isset ($outline['xmlUrl'])) { // Catégorie $title = ''; - + if (isset ($outline['text'])) { $title = (string) $outline['text']; } elseif (isset ($outline['title'])) { $title = (string) $outline['title']; } - + if ($title) { // Permet d'éviter les soucis au niveau des id : // ceux-ci sont générés en fonction de la date, @@ -99,7 +99,7 @@ function opml_import ($xml) { $cat = new Category ($title); } $categories[] = $cat; - + $feeds = array_merge ($feeds, getFeedsOutline ($outline, $cat->id ())); } } else { @@ -116,7 +116,7 @@ function opml_import ($xml) { */ function getFeedsOutline ($outline, $cat_id) { $feeds = array (); - + foreach ($outline->children () as $child) { if (isset ($child['xmlUrl'])) { $feeds[] = getFeed ($child, $cat_id); @@ -127,7 +127,7 @@ function getFeedsOutline ($outline, $cat_id) { ); } } - + return $feeds; } @@ -149,7 +149,7 @@ function getFeed ($outline, $cat_id) { /* permet de récupérer le contenu d'un article pour un flux qui n'est pas complet */ function get_content_by_parsing ($url, $path) { $html = file_get_contents ($url); - + if ($html) { $doc = phpQuery::newDocument ($html); $content = $doc->find ($path); diff --git a/lib/lib_text.php b/lib/lib_text.php index 9792e191e..99bac0c36 100644 --- a/lib/lib_text.php +++ b/lib/lib_text.php @@ -72,7 +72,7 @@ function splitUri($matches) { $uri = $matches[1].':'.$matches[2].$matches[3]; $t = parse_url($uri); $link = $matches[3]; - + if (!empty($t['scheme'])) { return ' <a href="'.$uri.'">'.$link.'</a>'; } else { diff --git a/lib/minz/Request.php b/lib/minz/Request.php index bde17f988..ffddbe6ad 100644 --- a/lib/minz/Request.php +++ b/lib/minz/Request.php @@ -1,5 +1,5 @@ <?php -/** +/** * MINZ - Copyright 2011 Marien Fressinaud * Sous licence AGPL3 <http://www.gnu.org/licenses/> */ @@ -11,12 +11,12 @@ class Request { private static $controller_name = ''; private static $action_name = ''; private static $params = array (); - + private static $default_controller_name = 'index'; private static $default_action_name = 'index'; - + public static $reseted = true; - + /** * Getteurs */ @@ -49,7 +49,7 @@ class Request { public static function defaultActionName () { return self::$default_action_name; } - + /** * Setteurs */ @@ -63,7 +63,7 @@ class Request { if (!is_array($params)) { $params = array ($params); } - + self::$params = $params; } public static function _param ($key, $value = false) { @@ -73,21 +73,21 @@ class Request { self::$params[$key] = $value; } } - + /** * Initialise la Request */ public static function init () { self::magicQuotesOff (); } - + /** * Retourn le nom de domaine du site */ public static function getDomainName () { return $_SERVER['HTTP_HOST']; } - + /** * Détermine la base de l'url * @return la base de l'url @@ -95,7 +95,7 @@ class Request { public static function getBaseUrl () { return Configuration::baseUrl (); } - + /** * Récupère l'URI de la requête * @return l'URI @@ -104,16 +104,16 @@ class Request { if (isset ($_SERVER['REQUEST_URI'])) { $base_url = self::getBaseUrl (); $uri = $_SERVER['REQUEST_URI']; - + $len_base_url = strlen ($base_url); - $real_uri = substr ($uri, $len_base_url); + $real_uri = substr ($uri, $len_base_url); } else { $real_uri = ''; } - + return $real_uri; } - + /** * Relance une requête * @param $url l'url vers laquelle est relancée la requête @@ -122,13 +122,13 @@ class Request { */ public static function forward ($url = array (), $redirect = false) { $url = Url::checkUrl ($url); - + if ($redirect) { header ('Location: ' . Url::display ($url, 'php')); exit (); } else { self::$reseted = true; - + self::_controllerName ($url['c']); self::_actionName ($url['a']); self::_params (array_merge ( @@ -137,7 +137,7 @@ class Request { )); } } - + /** * Permet de récupérer une variable de type $_GET * @param $param nom de la variable @@ -155,7 +155,7 @@ class Request { return $default; } } - + /** * Permet de récupérer une variable de type $_POST * @param $param nom de la variable @@ -173,7 +173,7 @@ class Request { return $default; } } - + /** * Méthode désactivant les magic_quotes pour les variables * $_GET @@ -187,7 +187,7 @@ class Request { $_COOKIE = Helper::stripslashes_r ($_COOKIE); } } - + public static function isPost () { return !empty ($_POST) || !empty ($_FILES); } diff --git a/lib/minz/Url.php b/lib/minz/Url.php index 4a703e64b..ce051ebd9 100755 --- a/lib/minz/Url.php +++ b/lib/minz/Url.php @@ -18,9 +18,9 @@ class Url { */ public static function display ($url = array (), $encodage = 'html', $absolute = false) { $url = self::checkUrl ($url); - + $url_string = ''; - + if ($absolute) { if (is_array ($url) && isset ($url['protocol'])) { $protocol = $url['protocol']; @@ -34,10 +34,10 @@ class Url { else { $url_string = '.'; } - + if (is_array ($url)) { $router = new Router (); - + if (Configuration::useUrlRewriting ()) { $url_string .= $router->printUriRewrited ($url); } else { @@ -46,7 +46,7 @@ class Url { } else { $url_string .= $url; } - + return $url_string; } diff --git a/public/index.php b/public/index.php index 6f9c63fa5..5f753d1a6 100755 --- a/public/index.php +++ b/public/index.php @@ -2,17 +2,17 @@ # ***** BEGIN LICENSE BLOCK ***** # MINZ - A free PHP framework # Copyright (C) 2011 Marien Fressinaud -# +# # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. -# +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. -# +# # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # |
