GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — 2.9 ( ffe71c...b9b3eb )
by Thorsten
07:14
created
phpmyfaq/admin/backup.import.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
                 $errorMessage = 'The uploaded file exceeds the upload_max_filesize directive in php.ini.';
124 124
                 break;
125 125
             case 2:
126
-                $errorMessage = 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the ' .
126
+                $errorMessage = 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the '.
127 127
                                 'HTML form.';
128 128
                 break;
129 129
             case 3:
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Helper/Search.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -208,8 +208,8 @@  discard block
 block discarded – undo
208 208
         $confPerPage = $this->_config->get('records.numberOfRecordsPerPage');
209 209
         $numOfResults = $resultSet->getNumberOfResults();
210 210
 
211
-        $totalPages = ceil($numOfResults / $confPerPage);
212
-        $lastPage = $currentPage * $confPerPage;
211
+        $totalPages = ceil($numOfResults/$confPerPage);
212
+        $lastPage = $currentPage*$confPerPage;
213 213
         $firstPage = $lastPage - $confPerPage;
214 214
         if ($lastPage > $numOfResults) {
215 215
             $lastPage = $numOfResults;
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
                 $oLink->itemTitle = $oLink->tooltip = $result->question;
287 287
 
288 288
                 $html .= '<li>';
289
-                $html .= $this->renderScore($result->score * 33);
289
+                $html .= $this->renderScore($result->score*33);
290 290
                 $html .= sprintf('<strong>%s</strong>: %s<br />',
291 291
                     $categoryInfo[0]['name'],
292 292
                     $oLink->toHtmlAnchor()
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Auth/Ldap.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
                 }
216 216
 
217 217
                 if (false !== $this->ldap->getDn($login)) {
218
-                    $this->activeServer = (int) $key;
218
+                    $this->activeServer = (int)$key;
219 219
                     break;
220 220
                 }
221 221
             }
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
             htmlspecialchars_decode($password)
252 252
         );
253 253
 
254
-        if (! $this->ldap->bind($bindLogin, htmlspecialchars_decode($password))) {
254
+        if (!$this->ldap->bind($bindLogin, htmlspecialchars_decode($password))) {
255 255
             $this->errors[] = $this->ldap->error;
256 256
 
257 257
             return false;
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
                 }
289 289
 
290 290
                 if (false !== $this->ldap->getDn($login)) {
291
-                    $this->activeServer = (int) $key;
291
+                    $this->activeServer = (int)$key;
292 292
                     break;
293 293
                 }
294 294
             }
Please login to merge, or discard this patch.
phpmyfaq/setup/update.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
     // Backup of config/elasticsearch.php if exists
232 232
     if (file_exists(PMF_ROOT_DIR.'/config/elasticsearch.php')) {
233 233
         if (!copy(PMF_ROOT_DIR.'/config/elasticsearch.php', PMF_ROOT_DIR.'/config/elasticsearch.bak.php')) {
234
-            echo '<p class="alert alert-danger"><strong>Error:</strong> The backup file ' .
234
+            echo '<p class="alert alert-danger"><strong>Error:</strong> The backup file '.
235 235
                 '../config/elasticsearch.bak.php could not be written. Please correct this!</p>';
236 236
         } else {
237 237
             $checkElasticsearchSetupFile = true;
@@ -599,7 +599,7 @@  discard block
 block discarded – undo
599 599
         foreach ($query as $key => $executeQuery) {
600 600
             $result = $faqConfig->getDb()->query($executeQuery);
601 601
             echo '.';
602
-            if (!($key % 100)) {
602
+            if (!($key%100)) {
603 603
                 echo '<br />';
604 604
             }
605 605
             if (!$result) {
@@ -619,7 +619,7 @@  discard block
 block discarded – undo
619 619
             }
620 620
             usleep(10000);
621 621
             ++$count;
622
-            if (!($count % 10)) {
622
+            if (!($count%10)) {
623 623
                 ob_flush();
624 624
             }
625 625
         }
@@ -713,7 +713,7 @@  discard block
 block discarded – undo
713 713
         $faqConfig->add('main.enableGzipCompression', 'true');
714 714
 
715 715
         if ('sqlite3' === $DB['type']) {
716
-            $query[] = 'ALTER TABLE ' . $prefix . 'faquser ADD COLUMN success INT(1) NULL DEFAULT 1';
716
+            $query[] = 'ALTER TABLE '.$prefix.'faquser ADD COLUMN success INT(1) NULL DEFAULT 1';
717 717
         } elseif ('pgsql' === $DB['type']) {
718 718
             $query[] = 'ALTER TABLE '.$prefix.'faquser ADD success SMALLINT NULL DEFAULT 1';
719 719
         } else {
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
                 // 2.5 versions only
161 161
                 if (version_compare($version, '2.6.0-alpha', '<') && !is_writeable('../template')) {
162 162
                     echo '<p class="alert alert-danger text-center"><strong>Please change the directory ../template '.
163
-                         'and its contents writable (777 on Linux/UNIX).</strong></p>';
163
+                            'and its contents writable (777 on Linux/UNIX).</strong></p>';
164 164
                 }
165 165
 
166 166
                 // We only support updates from 2.6+
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
     if (file_exists(PMF_ROOT_DIR.'/config/database.php')) {
207 207
         if (!copy(PMF_ROOT_DIR.'/config/database.php', PMF_ROOT_DIR.'/config/database.bak.php')) {
208 208
             echo '<p class="alert alert-danger"><strong>Error:</strong> The backup file ../config/database.bak.php '.
209
-                  'could not be written. Please correct this!</p>';
209
+                    'could not be written. Please correct this!</p>';
210 210
         } else {
211 211
             $checkDatabaseSetupFile = true;
212 212
             $updateMessages[] = 'A backup of your database configuration file has been made.';
@@ -603,8 +603,8 @@  discard block
 block discarded – undo
603 603
             if (!$result) {
604 604
                 echo '</div>';
605 605
                 echo '<p class="alert alert-danger"><strong>Error:</strong> Please update your version of phpMyFAQ '.
606
-                      'once again or send us a <a href="http://bugs.phpmyfaq.de" target="_blank">bug report</a>.'.
607
-                      '</p>';
606
+                        'once again or send us a <a href="http://bugs.phpmyfaq.de" target="_blank">bug report</a>.'.
607
+                        '</p>';
608 608
                 printf(
609 609
                     '<p class="alert alert-danger"><strong>DB error:</strong> %s</p>',
610 610
                     $faqConfig->getDb()->error()
@@ -906,7 +906,7 @@  discard block
 block discarded – undo
906 906
             printf('<span title="%s"><i aria-hidden="true" class="fa fa-circle"></i></span>', $executeQuery);
907 907
             if (!$result) {
908 908
                 echo '<p class="alert alert-danger"><strong>Error:</strong> Please install your version of phpMyFAQ once again '.
909
-                      'or send us a <a href="http://bugs.phpmyfaq.de" target="_blank">bug report</a>.</p>';
909
+                        'or send us a <a href="http://bugs.phpmyfaq.de" target="_blank">bug report</a>.</p>';
910 910
                 printf('<p class="error"><strong>DB error:</strong> %s</p>', $faqConfig->getDb()->error());
911 911
                 printf('<code>%s</code>', htmlentities($executeQuery));
912 912
                 PMF_System::renderFooter();
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Faq.php 3 patches
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -1868,16 +1868,16 @@  discard block
 block discarded – undo
1868 1868
         return true;
1869 1869
     }
1870 1870
 
1871
-     /**
1872
-      * Returns the visibility of a question.
1873
-      *
1874
-      * @param   int $questionId
1875
-      *
1876
-      * @return  string
1877
-      */
1878
-     public function getVisibilityOfQuestion($questionId)
1879
-     {
1880
-         $query = sprintf("
1871
+        /**
1872
+         * Returns the visibility of a question.
1873
+         *
1874
+         * @param   int $questionId
1875
+         *
1876
+         * @return  string
1877
+         */
1878
+        public function getVisibilityOfQuestion($questionId)
1879
+        {
1880
+            $query = sprintf("
1881 1881
             SELECT
1882 1882
                 is_visible
1883 1883
             FROM
@@ -1891,15 +1891,15 @@  discard block
 block discarded – undo
1891 1891
             $this->_config->getLanguage()->getLanguage()
1892 1892
         );
1893 1893
 
1894
-         $result = $this->_config->getDb()->query($query);
1895
-         if ($this->_config->getDb()->numRows($result) > 0) {
1896
-             $row = $this->_config->getDb()->fetchObject($result);
1894
+            $result = $this->_config->getDb()->query($query);
1895
+            if ($this->_config->getDb()->numRows($result) > 0) {
1896
+                $row = $this->_config->getDb()->fetchObject($result);
1897 1897
 
1898
-             return $row->is_visible;
1899
-         }
1898
+                return $row->is_visible;
1899
+            }
1900 1900
 
1901
-         return;
1902
-     }
1901
+            return;
1902
+        }
1903 1903
 
1904 1904
     /**
1905 1905
      * Sets the visibility of a question.
@@ -2455,7 +2455,7 @@  discard block
 block discarded – undo
2455 2455
                     'answer_id' => $row->answer_id,
2456 2456
                     'is_visible' => $row->is_visible,
2457 2457
                 );
2458
-             }
2458
+                }
2459 2459
         }
2460 2460
 
2461 2461
         return $questions;
Please login to merge, or discard this patch.
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -492,7 +492,7 @@  discard block
 block discarded – undo
492 492
      * This function returns all not expired records from the given record ids.
493 493
      *
494 494
      * @param array  $recordIds Array of record ids
495
-     * @param string $orderby    Order by
495
+     * @param string $orderBy    Order by
496 496
      * @param string $sortBy     Sort by
497 497
      *
498 498
      * @return string
@@ -1165,7 +1165,7 @@  discard block
 block discarded – undo
1165 1165
      * @param int    $record_id  Record id
1166 1166
      * @param string $language   Language
1167 1167
      *
1168
-     * @return int
1168
+     * @return boolean
1169 1169
      */
1170 1170
     public function addCategoryRelations(Array $categories, $record_id, $language)
1171 1171
     {
@@ -1660,7 +1660,7 @@  discard block
 block discarded – undo
1660 1660
      * @param int    $record_id   Record id
1661 1661
      * @param string $record_lang Record language
1662 1662
      *
1663
-     * @return array
1663
+     * @return boolean
1664 1664
      */
1665 1665
     public function addNewRevision($record_id, $record_lang)
1666 1666
     {
@@ -2654,7 +2654,7 @@  discard block
 block discarded – undo
2654 2654
      * Build a logic sequence, for a WHERE statement, of those category IDs
2655 2655
      * children of the provided category ID, if any.
2656 2656
      *
2657
-     * @param   $nCatid
2657
+     * @param   integer $nCatid
2658 2658
      * @param   $logicOp
2659 2659
      * @param   $oCat
2660 2660
      *
@@ -2680,14 +2680,14 @@  discard block
 block discarded – undo
2680 2680
     /**
2681 2681
      * Build the SQL query for retrieving faq records according to the constraints provided.
2682 2682
      *
2683
-     * @param   $QueryType
2684
-     * @param   $nCatid
2685
-     * @param   $bDownwards
2686
-     * @param   $lang
2687
-     * @param   $date
2683
+     * @param   string $QueryType
2684
+     * @param   integer $nCatid
2685
+     * @param   boolean $bDownwards
2686
+     * @param   string $lang
2687
+     * @param   string $date
2688 2688
      * @param   $faqid
2689 2689
      *
2690
-     * @return array
2690
+     * @return string
2691 2691
      */
2692 2692
     private function _getSQLQuery($QueryType, $nCatid, $bDownwards, $lang, $date, $faqid = 0)
2693 2693
     {
Please login to merge, or discard this patch.
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -28,17 +28,17 @@  discard block
 block discarded – undo
28 28
  * SQL constants definitions
29 29
  */
30 30
 define('FAQ_SQL_ACTIVE_YES', 'yes');
31
-define('FAQ_SQL_ACTIVE_NO',  'no');
31
+define('FAQ_SQL_ACTIVE_NO', 'no');
32 32
 
33 33
 /*
34 34
  * Query type definitions
35 35
  */
36
-define('FAQ_QUERY_TYPE_DEFAULT',      'faq_default');
37
-define('FAQ_QUERY_TYPE_APPROVAL',     'faq_approval');
38
-define('FAQ_QUERY_TYPE_EXPORT_PDF',   'faq_export_pdf');
36
+define('FAQ_QUERY_TYPE_DEFAULT', 'faq_default');
37
+define('FAQ_QUERY_TYPE_APPROVAL', 'faq_approval');
38
+define('FAQ_QUERY_TYPE_EXPORT_PDF', 'faq_export_pdf');
39 39
 define('FAQ_QUERY_TYPE_EXPORT_XHTML', 'faq_export_xhtml');
40
-define('FAQ_QUERY_TYPE_EXPORT_XML',   'faq_export_xml');
41
-define('FAQ_QUERY_TYPE_RSS_LATEST',   'faq_rss_latest');
40
+define('FAQ_QUERY_TYPE_EXPORT_XML', 'faq_export_xml');
41
+define('FAQ_QUERY_TYPE_RSS_LATEST', 'faq_rss_latest');
42 42
 
43 43
 /*
44 44
  * Sorting type definitions
@@ -379,12 +379,12 @@  discard block
 block discarded – undo
379 379
 
380 380
         $result = $this->_config->getDb()->query($query);
381 381
         $num = $this->_config->getDb()->numRows($result);
382
-        $pages = (int) ceil($num / $numPerPage);
382
+        $pages = (int)ceil($num/$numPerPage);
383 383
 
384 384
         if ($page == 1) {
385 385
             $first = 0;
386 386
         } else {
387
-            $first = $page * $numPerPage - $numPerPage;
387
+            $first = $page*$numPerPage - $numPerPage;
388 388
         }
389 389
 
390 390
         if ($num > 0) {
@@ -565,12 +565,12 @@  discard block
 block discarded – undo
565 565
         $result = $this->_config->getDb()->query($query);
566 566
 
567 567
         $num = $this->_config->getDb()->numRows($result);
568
-        $pages = ceil($num / $this->_config->get('records.numberOfRecordsPerPage'));
568
+        $pages = ceil($num/$this->_config->get('records.numberOfRecordsPerPage'));
569 569
 
570 570
         if ($page == 1) {
571 571
             $first = 0;
572 572
         } else {
573
-            $first = ($page * $this->_config->get('records.numberOfRecordsPerPage')) - $this->_config->get('records.numberOfRecordsPerPage');
573
+            $first = ($page*$this->_config->get('records.numberOfRecordsPerPage')) - $this->_config->get('records.numberOfRecordsPerPage');
574 574
         }
575 575
 
576 576
         if ($num > 0) {
@@ -1368,7 +1368,7 @@  discard block
 block discarded – undo
1368 1368
                 AND
1369 1369
                 lang = '%s'",
1370 1370
             PMF_Db::getTablePrefix(),
1371
-            (int) $faqId,
1371
+            (int)$faqId,
1372 1372
             $this->_config->getDb()->escape($faqLang)
1373 1373
         );
1374 1374
 
@@ -2441,7 +2441,7 @@  discard block
 block discarded – undo
2441 2441
                     'category_id' => $row->category_id,
2442 2442
                     'question' => $row->question,
2443 2443
                     'created' => $row->created,
2444
-                    'is_visible' => $row->is_visible, );
2444
+                    'is_visible' => $row->is_visible,);
2445 2445
             }
2446 2446
         }
2447 2447
 
@@ -2597,7 +2597,7 @@  discard block
 block discarded – undo
2597 2597
                     'revision_id' => $row->revision_id,
2598 2598
                     'user' => $row->usr,
2599 2599
                     'date' => $row->datum,
2600
-                    'changelog' => $row->what, );
2600
+                    'changelog' => $row->what,);
2601 2601
             }
2602 2602
         }
2603 2603
 
@@ -2897,13 +2897,13 @@  discard block
 block discarded – undo
2897 2897
             $mode,
2898 2898
             PMF_Db::getTablePrefix(),
2899 2899
             $mode,
2900
-            (int) $recordId);
2900
+            (int)$recordId);
2901 2901
 
2902 2902
         $result = $this->_config->getDb()->query($query);
2903 2903
 
2904 2904
         if ($this->_config->getDb()->numRows($result) > 0) {
2905 2905
             while (($row = $this->_config->getDb()->fetchObject($result))) {
2906
-                $permissions[] = (int) $row->permission;
2906
+                $permissions[] = (int)$row->permission;
2907 2907
             }
2908 2908
         }
2909 2909
 
@@ -2997,7 +2997,7 @@  discard block
 block discarded – undo
2997 2997
                 $oLink->itemTitle = $title;
2998 2998
                 $oLink->text = $title;
2999 2999
                 $oLink->tooltip = $title;
3000
-                $listItem = '<li>' . $oLink->toHtmlAnchor() . '</li>';
3000
+                $listItem = '<li>'.$oLink->toHtmlAnchor().'</li>';
3001 3001
 
3002 3002
                 $output .= $listItem;
3003 3003
             }
@@ -3153,7 +3153,7 @@  discard block
 block discarded – undo
3153 3153
                 $lang
3154 3154
             );
3155 3155
 
3156
-            $retval = (bool) $this->_config->getDb()->query($update);
3156
+            $retval = (bool)$this->_config->getDb()->query($update);
3157 3157
         }
3158 3158
 
3159 3159
         return $retval;
Please login to merge, or discard this patch.
phpmyfaq/admin/record.comments.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,9 +71,9 @@
 block discarded – undo
71 71
                     </a> |
72 72
                     <?php echo $date->format(date('Y-m-d H:i', $faqcomment['date'])) ?> |
73 73
                     <a href="<?php printf('../?action=artikel&cat=%d&id=%d&artlang=%s',
74
-                       $faqcomment['category_id'],
75
-                       $faqcomment['record_id'],
76
-                       $LANGCODE) ?>">
74
+                        $faqcomment['category_id'],
75
+                        $faqcomment['record_id'],
76
+                        $LANGCODE) ?>">
77 77
                         <?php echo $faq->getRecordTitle($faqcomment['record_id']) ?>
78 78
                     </a>
79 79
                 </span><br/>
Please login to merge, or discard this patch.
phpmyfaq/admin/image.browser.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 if (!is_dir(PMF_ROOT_DIR.'/images')) {
67 67
     echo '<p class="alert alert-danger">'.sprintf($PMF_LANG['ad_dir_missing'], '/images').'</p>';
68 68
 } else {
69
-    $files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(PMF_ROOT_DIR . '/images/'));
69
+    $files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(PMF_ROOT_DIR.'/images/'));
70 70
     foreach ($files as $file) {
71 71
         if ($file->isDir() || !in_array($file->getExtension(), $allowedExtensions)) {
72 72
             continue;
@@ -74,9 +74,9 @@  discard block
 block discarded – undo
74 74
         $path = str_replace(dirname(__DIR__).'/', '', $file->getPath());
75 75
         printf(
76 76
             '<div class="mce-file" data-src="%s"><img src="%s" class="mce-file-preview">%s</div>',
77
-            $faqConfig->getDefaultUrl() . $path . '/' . $file->getFilename(),
78
-            $faqConfig->getDefaultUrl() . $path . '/' . $file->getFilename(),
79
-            $path . '/' . $file->getFilename()
77
+            $faqConfig->getDefaultUrl().$path.'/'.$file->getFilename(),
78
+            $faqConfig->getDefaultUrl().$path.'/'.$file->getFilename(),
79
+            $path.'/'.$file->getFilename()
80 80
         );
81 81
     }
82 82
 }
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Relation.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -73,21 +73,21 @@
 block discarded – undo
73 73
         $search
74 74
             ->setTable(PMF_Db::getTablePrefix().'faqdata AS fd')
75 75
             ->setResultColumns(
76
-               [
77
-                   'fd.id AS id',
78
-                   'fd.lang AS lang',
79
-                   'fcr.category_id AS category_id',
80
-                   'fd.thema AS question',
81
-                   'fd.content AS answer',
82
-                   'fd.keywords AS keywords'
83
-               ]
76
+                [
77
+                    'fd.id AS id',
78
+                    'fd.lang AS lang',
79
+                    'fcr.category_id AS category_id',
80
+                    'fd.thema AS question',
81
+                    'fd.content AS answer',
82
+                    'fd.keywords AS keywords'
83
+                ]
84 84
             )
85 85
             ->setJoinedTable(PMF_Db::getTablePrefix().'faqcategoryrelations AS fcr')
86 86
             ->setJoinedColumns(
87
-               [
87
+                [
88 88
                 'fd.id = fcr.record_id',
89 89
                 'fd.lang = fcr.record_lang',
90
-               ]
90
+                ]
91 91
             )
92 92
             ->setConditions(
93 93
                 [
Please login to merge, or discard this patch.
phpmyfaq/admin/trans.list.php 1 patch
Braces   +20 added lines, -8 removed lines patch added patch discarded remove patch
@@ -105,9 +105,12 @@  discard block
 block discarded – undo
105 105
                         <?php echo $PMF_LANG['msgEdit'] ?>
106 106
                     </a>
107 107
                 </td>
108
-                <?php else: ?>
108
+                <?php else {
109
+    : ?>
109 110
                 <td><?php echo $PMF_LANG['msgEdit'] ?></td>
110
-                <?php endif; ?>
111
+                <?php endif;
112
+}
113
+?>
111 114
                 <?php if ($user->perm->checkRight($user->getUserId(), 'deltranslation') && $showActions): ?>
112 115
                 <td>
113 116
                     <a class="btn btn-danger" href="javascript: del('<?php echo $lang ?>');" >
@@ -115,9 +118,12 @@  discard block
 block discarded – undo
115 118
                         <?php echo $PMF_LANG['msgDelete'] ?>
116 119
                     </a>
117 120
                 </td>
118
-                <?php else: ?>
121
+                <?php else {
122
+    : ?>
119 123
                 <td><?php echo $PMF_LANG['msgDelete'] ?></td>
120
-                <?php endif; ?>
124
+                <?php endif;
125
+}
126
+?>
121 127
                 <?php if ($user->perm->checkRight($user->getUserId(), 'edittranslation') && $showActions): ?>
122 128
                 <td>
123 129
                     <a class="btn btn-success" href="javascript: sendToTeam('<?php echo $lang ?>');" >
@@ -125,14 +131,20 @@  discard block
 block discarded – undo
125 131
                         <?php echo $PMF_LANG['msgTransToolSendToTeam'] ?>
126 132
                     </a>
127 133
                 </td>
128
-                <?php else: ?>
134
+                <?php else {
135
+    : ?>
129 136
                 <td><?php echo $PMF_LANG['msgTransToolSendToTeam'] ?></td>
130
-                <?php endif; ?>
137
+                <?php endif;
138
+}
139
+?>
131 140
                 <?php if ($isLangFileWritable): ?>
132 141
                 <td><i aria-hidden="true" class="fa fa-ok-circle"></i> <?php echo $PMF_LANG['msgYes'] ?></td>
133
-                <?php else: ?>
142
+                <?php else {
143
+    : ?>
134 144
                 <td><i aria-hidden="true" class="fa fa-ban-circle"></i> <?php echo $PMF_LANG['msgNo'] ?></td>
135
-                <?php endif; ?>
145
+                <?php endif;
146
+}
147
+?>
136 148
                 <td>
137 149
                     <?php echo $percents ?>%
138 150
                     <meter value="<?php echo $percents ?>" max="100" min="0" title="<?php echo $percents ?>%">
Please login to merge, or discard this patch.