Passed
Push — dev ( 8b84d5...475726 )
by Nils
05:50
created
api/Model/Operation.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
                 "error" => '',
39 39
             );
40 40
     
41
-        }catch (Exception $e) {    
41
+        } catch (Exception $e) {    
42 42
             return false;
43 43
         }
44 44
     }
Please login to merge, or discard this patch.
sources/main.functions.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3886,7 +3886,9 @@
 block discarded – undo
3886 3886
     );
3887 3887
     
3888 3888
     // if not exists then error
3889
-    if (is_null($val) === true || count($val) === 0 || defined('UPGRADE_MIN_DATE') === false) return true;
3889
+    if (is_null($val) === true || count($val) === 0 || defined('UPGRADE_MIN_DATE') === false) {
3890
+        return true;
3891
+    }
3890 3892
 
3891 3893
     // if empty or too old then error
3892 3894
     if (empty($val['valeur']) === true || (int) $val['valeur'] < (int) UPGRADE_MIN_DATE) {
Please login to merge, or discard this patch.
pages/tasks.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -128,8 +128,7 @@
 block discarded – undo
128 128
                                             </div>
129 129
         <?php
130 130
     }
131
-}
132
-catch (Exception $e) {
131
+} catch (Exception $e) {
133 132
     echo $e->getMessage();
134 133
 }?>
135 134
                                     </div>
Please login to merge, or discard this patch.
pages/admin.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -207,8 +207,7 @@
 block discarded – undo
207 207
                             </div>
208 208
         <?php
209 209
     }
210
-}
211
-catch (Exception $e) {
210
+} catch (Exception $e) {
212 211
     echo $e->getMessage();
213 212
 }
214 213
 ?>
Please login to merge, or discard this patch.
sources/users.queries.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2603,7 +2603,9 @@
 block discarded – undo
2603 2603
             }
2604 2604
             
2605 2605
             foreach ($results as $adUser) {
2606
-                if (isset($adUser[$SETTINGS['ldap_user_attribute']][0]) === false) continue;
2606
+                if (isset($adUser[$SETTINGS['ldap_user_attribute']][0]) === false) {
2607
+                    continue;
2608
+                }
2607 2609
                 // Build the list of all groups in AD
2608 2610
                 if (isset($adUser['memberof']) === true) {
2609 2611
                     foreach($adUser['memberof'] as $j => $adUserGroup) {
Please login to merge, or discard this patch.
sources/items.queries.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1822,7 +1822,9 @@
 block discarded – undo
1822 1822
                     $inputData['itemId']
1823 1823
                 );
1824 1824
                 foreach ($rows as $record) {
1825
-                    if ($record['raison'] === NULL) continue;
1825
+                    if ($record['raison'] === NULL) {
1826
+                        continue;
1827
+                    }
1826 1828
                     $reason = explode(':', $record['raison']);
1827 1829
                     if (count($reason) > 0) {
1828 1830
                         $sentence = date($SETTINGS['date_format'] . ' ' . $SETTINGS['time_format'], (int) $record['date']) . ' - '
Please login to merge, or discard this patch.