]> git.mxchange.org Git - friendica.git/commitdiff
Standards: Remove EOF closing PHP tags
authorHypolite Petovan <mrpetovan@gmail.com>
Sun, 30 Apr 2017 04:21:02 +0000 (00:21 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Wed, 3 May 2017 03:36:56 +0000 (23:36 -0400)
33 files changed:
include/Contact.php
include/Emailer.php
include/Probe.php
include/auth_ejabberd.php
include/create_shadowentry.php
include/dbclean.php
include/dbm.php
include/diaspora.php
include/feed.php
include/files.php
include/html2bbcode.php
include/html2plain.php
include/msgclean.php
include/ostatus.php
include/pidfile.php
include/plaintext.php
include/poller.php
include/post_update.php
include/quoteconvert.php
include/remove_contact.php
include/socgraph.php
include/spool_post.php
include/tags.php
include/threads.php
mod/nodeinfo.php
mod/pubsubhubbub.php
object/BaseObject.php
object/Conversation.php
object/Item.php
tests/xss_filter_test.php
util/createdoxygen.php
util/daemon.php
view/theme/duepuntozero/style.php

index d635ee872558c649ce49970e97bf11db9f7795f4..d8971abc35d5493cc9892ed33c08424ec58e941f 100644 (file)
@@ -854,4 +854,3 @@ function account_type($contact) {
 
        return $account_type;
 }
-?>
index b0cdc3fe63b556ad6dc0a67a61efd427b0b4622b..9df6ac36c9dab238b3b2d61eb17ddb9b4eef3474 100644 (file)
@@ -81,4 +81,3 @@ class Emailer {
                return $res;
        }
 }
-?>
index c9c0530f08da9a90cc0323aebba92e4f47e34b5e..89145298675aa2d833d6f8c16620fc0325ff16ec 100644 (file)
@@ -1220,4 +1220,3 @@ class Probe {
                return $data;
        }
 }
-?>
index a528f86c34bdc1914afda0d61ce3dc197523a621..0b0f263ea54e5dac5fc777dabc359a5c494aa5b0 100755 (executable)
@@ -334,4 +334,3 @@ class exAuth {
                        fclose($this->rLogFile);
        }
 }
-?>
index 98db23f9effb1cd14aad0263d6e63941e359b07c..29222de5e76cf8b497f9236721136f7956072c4f 100644 (file)
@@ -17,4 +17,3 @@ function create_shadowentry_run($argv, $argc) {
 
        add_shadow_entry($message_id);
 }
-?>
index 64ceb51d37bc58060c29f53b06ad1b9457e86345..6643a6314e44dd5504777eaed3f89f6ed8a43b1f 100644 (file)
@@ -149,4 +149,3 @@ function remove_orphans($stage = 0) {
        }
 
 }
-?>
index 3430577da6a05665b0e93445f0b973c9745e216f..db50dae89c95eefe8796aeb4ddd835491278b75e 100644 (file)
@@ -110,4 +110,3 @@ class dbm {
                return date('Y-m-d H:i:s', $timestamp);
        }
 }
-?>
index 21081dd6a7250d7e4891984c47889ad633e4b065..3f70d5b4b9156fdbcbe65469669947649be1994c 100644 (file)
@@ -3745,4 +3745,3 @@ class Diaspora {
                return true;
        }
 }
-?>
index 32044e663e7113f8eda3834ef986579de5378df9..cfef6d4ad03deb12b562840dfec395a827601eb9 100644 (file)
@@ -366,4 +366,3 @@ function feed_import($xml,$importer,&$contact, &$hub, $simulate = false) {
                return array("header" => $author, "items" => $items);
        }
 }
-?>
index c20a6d832d6898b3356eef1f705cc27a77d392ca..0ac0078c859272b99f0db46b26d8c04866cd9193 100644 (file)
@@ -47,4 +47,3 @@ function update_files_for_items() {
                create_files_from_item($message["id"]);
        }
 }
-?>
index c14629b895ed52bff01ab0f8b5788fdf55bdd736..1deab951958ac3a6750ac956a2289af6be3581e5 100644 (file)
@@ -325,4 +325,3 @@ function html2bbcode($message)
 
        return $message;
 }
-?>
index dc2cb137c49358e986f513860c5dda7d8f2b049e..ed338ce71002672c6fbf217941e98eba125efc96 100644 (file)
@@ -233,4 +233,3 @@ function html2plain($html, $wraplength = 75, $compact = false)
 
        return(trim($message));
 }
-?>
index 3b5ed5487de87d1837cba6c4c7db3259b572244f..50eb46368fd56730b711ae66e206f62f9a2a5dd6 100644 (file)
@@ -187,7 +187,7 @@ function removelinebreak($message)
                                (substr(trim($nextline), 0, 7) == 'http://') or
                                (substr(trim($nextline), 0, 8) == 'https://'));
 
-               if (!$specialchars) 
+               if (!$specialchars)
                        $specialchars = ((substr(rtrim($line), -1) == '-') or
                                        (substr(rtrim($line), -1) == '=') or
                                        (substr(rtrim($line), -1) == '*') or
@@ -222,4 +222,3 @@ function removelinebreak($message)
        return(implode("\n", $lines));
 
 }
-?>
index d582acfee67d6b9f6a4bf26c240add4331f304a7..82595529d2bc1f93cfea4dbbfb169abb04340f8f 100644 (file)
@@ -2297,4 +2297,3 @@ class ostatus {
                return(trim($doc->saveXML()));
        }
 }
-?>
index 3093e149aeb869acc2c35ca0a49e9087642e7cb6..dda6b3e9c130827c3469e5ef650bd15177bdb7bf 100644 (file)
@@ -38,4 +38,3 @@ class pidfile {
                        return(posix_kill(file_get_contents($this->_file), SIGTERM));
        }
 }
-?>
index aa644ee2bea71a8d47f49fae3b7434c9ad57bf3d..215d9f3db726a2e722a2da8f67400462c61fd08c 100644 (file)
@@ -432,4 +432,3 @@ function plaintext(App $a, $b, $limit = 0, $includedlinks = false, $htmlmode = 2
 
        return($post);
 }
-?>
index f0192f0f0385dc243dbeeb2f6711e2c6d57e16bb..cd56528c9d45be828555e70448e74f995c22e0b7 100644 (file)
@@ -689,4 +689,3 @@ if (array_search(__file__,get_included_files())===0){
 
        killme();
 }
-?>
index f9649961d9ca0d087d6b9a8eeea1dde591ac7305..9d18b27b4f3c16a8d42ea52372e1eecf33eb2c40 100644 (file)
@@ -258,5 +258,3 @@ function post_update_1206() {
        logger("Done", LOGGER_DEBUG);
        return true;
 }
-
-?>
index 2a6d28370a3910cbb4a34fc470526fb48a20eb16..4473fa99befbdd659af74d789df48109d7518d3a 100644 (file)
@@ -129,4 +129,3 @@ function removetofu($message)
 
        return($message);
 }
-?>
index bb110a284b9283123ec0c2f78c090aff87d8a673..bd736e548447eb98f6238a72925b53b98b739bc8 100644 (file)
@@ -22,4 +22,3 @@ function remove_contact_run($argv, $argc) {
        // Now we delete all the depending table entries
        dba::delete('contact', array('id' => $id));
 }
-?>
index c8a2fdaf1d055653f204636dfaf921ffb2e46333..820232b12a39fbc6ba87d8580d4e5127f93cdc2c 100644 (file)
@@ -2346,4 +2346,3 @@ function poco_serverlist() {
        }
        return $r;
 }
-?>
index f64b39e4b687bda0e0b42434ed88c2872367c463..b3fd5c6b0b1e5de407ad2c0fb2f5fdc1daa05c96 100644 (file)
@@ -55,4 +55,3 @@ function spool_post_run($argv, $argc) {
                }
        }
 }
-?>
index 9a52097cc448a68ef3ad313706b8401a12347b3e..6067f3f4b93c58b2c41308412fbf18b4f9a264c2 100644 (file)
@@ -148,4 +148,3 @@ function update_items() {
 
        dba::close($messages);
 }
-?>
index 9e0982836e240338b1866f3b7e2b7fc26d7e15be..66622e8746c6c40cefee9fe732d1857a22f480f2 100644 (file)
@@ -296,4 +296,3 @@ function update_shadow_copy() {
 
        dba::close($messages);
 }
-?>
index fb3fc6ae24a63c2ca1696c7b89210100ec4fa6e2..5d8e8f2a20f434f0bb74e7f0b49431da206aba8e 100644 (file)
@@ -252,5 +252,3 @@ function nodeinfo_cron() {
         logger('cron_end');
        Config::set('nodeinfo', 'last_calucation', time());
 }
-
-?>
index c6f961e6b6966cc6feffe2921ad56c47561ea4c4..da2f94748943887d7fe3c3dc8a710ac0ce820209 100644 (file)
@@ -160,5 +160,3 @@ function pubsubhubbub_init(App $a) {
 
        killme();
 }
-
-?>
index 2666dc1de572816a01ec53d4522288392e8c5424..15c7d8dc652dbd0bcc05dcce1ac2ad5db6cc123b 100644 (file)
@@ -14,7 +14,7 @@ class BaseObject {
 
        /**
         * Get the app
-        * 
+        *
         * Same as get_app from boot.php
         */
        public function get_app() {
@@ -33,4 +33,3 @@ class BaseObject {
                self::$app = $app;
        }
 }
-?>
index eb5b3b9b486985fe67bc0c8958cb3f33912293c8..f03b3b1c1bc00cfbada58c7f0a93495d3394bd78 100644 (file)
@@ -164,4 +164,3 @@ class Conversation extends BaseObject {
                return false;
        }
 }
-?>
index b693520b93d8cb2e932af589a6b5da94cb51a46a..0042e070a9da9b3bc73b02606f68328e880c44a2 100644 (file)
@@ -112,7 +112,7 @@ class Item extends BaseObject {
 
                $conv = $this->get_conversation();
 
-               $lock = ((($item['private'] == 1) || (($item['uid'] == local_user()) && (strlen($item['allow_cid']) || strlen($item['allow_gid']) 
+               $lock = ((($item['private'] == 1) || (($item['uid'] == local_user()) && (strlen($item['allow_cid']) || strlen($item['allow_gid'])
                        || strlen($item['deny_cid']) || strlen($item['deny_gid']))))
                        ? t('Private Message')
                        : false);
@@ -754,20 +754,20 @@ class Item extends BaseObject {
                                        if ((! $owner_linkmatch) && (! $alias_linkmatch) && (! $owner_namematch)) {
 
                                                // The author url doesn't match the owner (typically the contact)
-                                               // and also doesn't match the contact alias. 
-                                               // The name match is a hack to catch several weird cases where URLs are 
+                                               // and also doesn't match the contact alias.
+                                               // The name match is a hack to catch several weird cases where URLs are
                                                // all over the park. It can be tricked, but this prevents you from
                                                // seeing "Bob Smith to Bob Smith via Wall-to-wall" and you know darn
-                                               // well that it's the same Bob Smith. 
+                                               // well that it's the same Bob Smith.
 
-                                               // But it could be somebody else with the same name. It just isn't highly likely. 
+                                               // But it could be somebody else with the same name. It just isn't highly likely.
 
 
                                                $this->owner_photo = $this->get_data_value('owner-avatar');
                                                $this->owner_name = $this->get_data_value('owner-name');
                                                $this->wall_to_wall = true;
                                                // If it is our contact, use a friendly redirect link
-                                               if ((link_compare($this->get_data_value('owner-link'),$this->get_data_value('url'))) 
+                                               if ((link_compare($this->get_data_value('owner-link'),$this->get_data_value('url')))
                                                        && ($this->get_data_value('network') === NETWORK_DFRN)) {
                                                        $this->owner_url = $this->get_redirect_url();
                                                } else {
@@ -807,5 +807,3 @@ class Item extends BaseObject {
        }
 
 }
-/// @TODO These are discouraged and should be removed:
-?>
index 3fb6ac3109daf150c071d7d767b4ecd72a8be5a8..5bc8e0ad3f068e0b4b8fae1d23bf31cfbee736b4 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /**
  * tests several functions which are used to prevent xss attacks
- * 
+ *
  * @package test.util
  */
 
@@ -27,31 +27,31 @@ class AntiXSSTest extends PHPUnit_Framework_TestCase {
         */
        public function testXmlify() {
                $text="<tag>I want to break\n this!11!<?hard?></tag>";
-               $xml=xmlify($text); 
+               $xml=xmlify($text);
                $retext=unxmlify($text);
 
                $this->assertEquals($text, $retext);
        }
-       
-       /**\r
-        * xmlify and put in a document\r
-        */\r
-       public function testXmlifyDocument() {\r
-               $tag="<tag>I want to break</tag>";\r
+
+       /**
+        * xmlify and put in a document
+        */
+       public function testXmlifyDocument() {
+               $tag="<tag>I want to break</tag>";
                $xml=xmlify($tag);
-               $text='<text>'.$xml.'</text>'; \r
-               
-               $xml_parser=xml_parser_create(); 
+               $text='<text>'.$xml.'</text>';
+
+               $xml_parser=xml_parser_create();
                //should be possible to parse it
-               $values=array(); $index=array(); 
-               $this->assertEquals(1, xml_parse_into_struct($xml_parser, $text, $values, $index)); 
-               
-               $this->assertEquals(array('TEXT'=>array(0)), 
-                               $index); 
-               $this->assertEquals(array(array('tag'=>'TEXT', 'type'=>'complete', 'level'=>1, 'value'=>$tag)),\r
+               $values=array(); $index=array();
+               $this->assertEquals(1, xml_parse_into_struct($xml_parser, $text, $values, $index));
+
+               $this->assertEquals(array('TEXT'=>array(0)),
+                               $index);
+               $this->assertEquals(array(array('tag'=>'TEXT', 'type'=>'complete', 'level'=>1, 'value'=>$tag)),
                                $values);
-               
-               xml_parser_free($xml_parser); \r
+
+               xml_parser_free($xml_parser);
        }
 
        /**
@@ -68,4 +68,3 @@ class AntiXSSTest extends PHPUnit_Framework_TestCase {
        //get_mentions
        //get_contact_block, bis Zeile 538
 }
-?>
index 163c94bb97a2fd91550a1b22fb38b17014cb3fde..798c81474f013062a2fef8cbde2f8d98e12867c3 100644 (file)
@@ -91,4 +91,3 @@ function add_documentation($line) {
 
        return $block;
 }
-?>
index 266ddcd754f2ac499a88618d93ee267136a98861..4accef3960a390dad4b8c79323e38be99671934b 100644 (file)
@@ -98,4 +98,3 @@ while (true) {
        // Now sleep for 5 minutes
        sleep(300);
 }
-?>
index 89f44d9c0454b3e6c7e05d6b5c86bb4c9c44f705..1095dfcc5d83ab1a57d17d9e3d32bedc048c539c 100644 (file)
@@ -6,7 +6,7 @@ $uid = get_theme_uid();
 
 $s_colorset = get_config('duepuntozero','colorset');
 $colorset = get_pconfig( $uid, 'duepuntozero', 'colorset');
-if (!x($colorset)) 
+if (!x($colorset))
     $colorset = $s_colorset;
 
 if ($colorset) {
@@ -25,5 +25,3 @@ if ($colorset) {
 }
 
 echo $setcss;
-
-?>