]> git.mxchange.org Git - friendica.git/blobdiff - mod/crepair.php
Merge pull request #3483 from rabuzarus/20170522_-_frio_event_button_fix
[friendica.git] / mod / crepair.php
index 308d5b95e9d573ea990966225b4e02db897ee294..59ac620a374cf1dc4730ef3b1455b3e198ce2182 100644 (file)
@@ -1,10 +1,14 @@
 <?php
+
+use Friendica\App;
+
 require_once("include/contact_selectors.php");
 require_once("mod/contacts.php");
 
-function crepair_init(App &$a) {
-       if(! local_user())
+function crepair_init(App $a) {
+       if (! local_user()) {
                return;
+       }
 
        $contact_id = 0;
 
@@ -29,10 +33,10 @@ function crepair_init(App &$a) {
        }
 }
 
-
-function crepair_post(App &$a) {
-       if(! local_user())
+function crepair_post(App $a) {
+       if (! local_user()) {
                return;
+       }
 
        $cid = (($a->argc > 1) ? intval($a->argv[1]) : 0);
 
@@ -95,9 +99,9 @@ function crepair_post(App &$a) {
 
 
 
-function crepair_content(App &$a) {
+function crepair_content(App $a) {
 
-       if(! local_user()) {
+       if (! local_user()) {
                notice( t('Permission denied.') . EOL);
                return;
        }