Completed
Pull Request — master (#1821)
by Christian
09:01
created
html/user/job_file.php 1 patch
Switch Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -80,20 +80,20 @@
 block discarded – undo
80 80
 
81 81
 function upload_error_description($errno) {
82 82
     switch($errno) {
83
-        case UPLOAD_ERR_INI_SIZE:
84
-            return "The uploaded file exceeds upload_max_filesize of php.ini."; break;
85
-        case UPLOAD_ERR_FORM_SIZE:
86
-            return "The uploaded file exceeds the MAX_FILE_SIZE specified in the HTML form."; break;
87
-        case UPLOAD_ERR_PARTIAL:
88
-            return "The uploaded file was only partially uploaded."; break;
89
-        case UPLOAD_ERR_NO_FILE:
90
-            return "No file was uploaded."; break;
91
-        case UPLOAD_ERR_NO_TMP_DIR:
92
-            return "Missing a temporary folder."; break;
93
-        case UPLOAD_ERR_CANT_WRITE:
94
-            return "Failed to write file to disk."; break;
95
-        case UPLOAD_ERR_EXTENSION:
96
-            return "A PHP extension stopped the file upload."; break;
83
+    case UPLOAD_ERR_INI_SIZE:
84
+        return "The uploaded file exceeds upload_max_filesize of php.ini."; break;
85
+    case UPLOAD_ERR_FORM_SIZE:
86
+        return "The uploaded file exceeds the MAX_FILE_SIZE specified in the HTML form."; break;
87
+    case UPLOAD_ERR_PARTIAL:
88
+        return "The uploaded file was only partially uploaded."; break;
89
+    case UPLOAD_ERR_NO_FILE:
90
+        return "No file was uploaded."; break;
91
+    case UPLOAD_ERR_NO_TMP_DIR:
92
+        return "Missing a temporary folder."; break;
93
+    case UPLOAD_ERR_CANT_WRITE:
94
+        return "Failed to write file to disk."; break;
95
+    case UPLOAD_ERR_EXTENSION:
96
+        return "A PHP extension stopped the file upload."; break;
97 97
     }
98 98
 }
99 99
 
Please login to merge, or discard this patch.
html/user/forum_banishment_vote_action.php 1 patch
Switch Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -55,14 +55,14 @@
 block discarded – undo
55 55
 
56 56
 // TODO: create a function for this in forum_banishment_vote.inc to make it more flexible
57 57
 switch (post_int("category", true)) {
58
-    case 1:
59
-        $mod_category = tra("Obscene");
60
-    case 2:
61
-        $mod_category = tra("Flame/Hate mail");
62
-    case 3:
63
-        $mod_category = tra("User Request");
64
-    default:
65
-        $mod_category = tra("Other");
58
+case 1:
59
+    $mod_category = tra("Obscene");
60
+case 2:
61
+    $mod_category = tra("Flame/Hate mail");
62
+case 3:
63
+    $mod_category = tra("User Request");
64
+default:
65
+    $mod_category = tra("Other");
66 66
 }
67 67
 
68 68
 if (post_str('reason', true)){
Please login to merge, or discard this patch.
html/user/forum_moderate_post_action.php 1 patch
Switch Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -36,12 +36,12 @@
 block discarded – undo
36 36
 
37 37
 function hide_explanation() {
38 38
     switch (post_int("category", true)) {
39
-        case 1: $c = "Obscene"; break;
40
-        case 2: $c = "Flame/Hate mail"; break;
41
-        case 3: $c = "Commercial spam"; break;
42
-        case 4: $c = "Double post"; break;
43
-        case 5: $c = "User Request"; break;
44
-        default: $c = "Other"; break;
39
+    case 1: $c = "Obscene"; break;
40
+    case 2: $c = "Flame/Hate mail"; break;
41
+    case 3: $c = "Commercial spam"; break;
42
+    case 4: $c = "Double post"; break;
43
+    case 5: $c = "User Request"; break;
44
+    default: $c = "Other"; break;
45 45
     }
46 46
     $x = "\nYour post was categorized as ".$c;
47 47
     $x .= mod_comment();
Please login to merge, or discard this patch.
html/ops/db_form.php 1 patch
Switch Indentation   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -35,63 +35,63 @@
 block discarded – undo
35 35
 start_table();
36 36
 
37 37
 switch($table){
38
-	case "platform": 
39
-		break;
40
-	case "app": 
41
-		break;
42
-    case "app_version":
43
-        print_detail_field();
44
-        print_query_field();
45
-        break;
46
-    case "host":
47
-        echo "
38
+case "platform": 
39
+	break;
40
+case "app": 
41
+	break;
42
+case "app_version":
43
+    print_detail_field();
44
+    print_query_field();
45
+    break;
46
+case "host":
47
+    echo "
48 48
             <tr>
49 49
             <td align=\"right\">Show Aggregate Information</td>
50 50
             <td>
51 51
         ";
52
-        print_checkbox("", "show_aggregate", $show_aggregate);
53
-        echo "
52
+    print_checkbox("", "show_aggregate", $show_aggregate);
53
+    echo "
54 54
             </td>
55 55
             </tr>
56 56
         ";
57
-        print_detail_field();
58
-        print_query_field();
59
-        break;
60
-    case "workunit":
61
-        print_detail_field();
62
-        print_query_field();
63
-        echo "<input type=\"hidden\" name=\"sort_by\" value=\"id\">\n";
64
-        break;
65
-    case "result":
66
-        echo "<tr><td align=\"right\">Server state</td><td> ";
67
-        server_state_select();
68
-        echo "</td></tr>\n";
69
-        //print_text_field( "Batch number:", "batch", $batch );
70
-        echo "<tr><td align=\"right\">Outcome</td><td>";
71
-        outcome_select();
72
-        echo "</td></tr>\n";
73
-        echo "<tr><td align=\"right\">Client state</td><td>";
74
-        client_state_select();
75
-        echo "</td></tr>\n";
76
-        echo "<tr><td align=\"right\">Validate state</td><td>";
77
-        validate_state_select();
78
-        echo "</td></tr>\n";
79
-        echo "<tr><td align=\"right\">Sort by</td><td>";
80
-        result_sort_select();
81
-        sort_order_select();
82
-        echo "</td></tr>\n";
83
-        print_detail_field();
84
-        print_query_field();
85
-        break;
86
-    case "team":
87
-        print_query_field();
88
-        break;
89
-    case "user":
90
-        print_query_field();
91
-        break;
92
-	default:
93
-		echo "Unknown table name\n";
94
-        exit();
57
+    print_detail_field();
58
+    print_query_field();
59
+    break;
60
+case "workunit":
61
+    print_detail_field();
62
+    print_query_field();
63
+    echo "<input type=\"hidden\" name=\"sort_by\" value=\"id\">\n";
64
+    break;
65
+case "result":
66
+    echo "<tr><td align=\"right\">Server state</td><td> ";
67
+    server_state_select();
68
+    echo "</td></tr>\n";
69
+    //print_text_field( "Batch number:", "batch", $batch );
70
+    echo "<tr><td align=\"right\">Outcome</td><td>";
71
+    outcome_select();
72
+    echo "</td></tr>\n";
73
+    echo "<tr><td align=\"right\">Client state</td><td>";
74
+    client_state_select();
75
+    echo "</td></tr>\n";
76
+    echo "<tr><td align=\"right\">Validate state</td><td>";
77
+    validate_state_select();
78
+    echo "</td></tr>\n";
79
+    echo "<tr><td align=\"right\">Sort by</td><td>";
80
+    result_sort_select();
81
+    sort_order_select();
82
+    echo "</td></tr>\n";
83
+    print_detail_field();
84
+    print_query_field();
85
+    break;
86
+case "team":
87
+    print_query_field();
88
+    break;
89
+case "user":
90
+    print_query_field();
91
+    break;
92
+default:
93
+	echo "Unknown table name\n";
94
+       exit();
95 95
 }
96 96
 
97 97
 row2("Number of entries to show", "<input name=\"nresults\" value=\"20\">");
Please login to merge, or discard this patch.
html/inc/db.inc 1 patch
Switch Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -86,14 +86,14 @@
 block discarded – undo
86 86
     function _mysql_field_attrs($r, $i) {
87 87
         $x = mysqli_fetch_field_direct($r, $i);
88 88
         switch ($x->type) {
89
-            case 1: $x->type = 'tinyint'; break;
90
-            case 2: $x->type = 'smallint'; break;
91
-            case 3: $x->type = 'int'; break;
92
-            case 5: $x->type = 'double'; break;
93
-            case 7: $x->type = 'timestamp'; break;
94
-            case 252: $x->type = 'blob'; break;
95
-            case 253: $x->type = 'varchar'; break;
96
-            case 254: $x->type = 'char'; break;
89
+        case 1: $x->type = 'tinyint'; break;
90
+        case 2: $x->type = 'smallint'; break;
91
+        case 3: $x->type = 'int'; break;
92
+        case 5: $x->type = 'double'; break;
93
+        case 7: $x->type = 'timestamp'; break;
94
+        case 252: $x->type = 'blob'; break;
95
+        case 253: $x->type = 'varchar'; break;
96
+        case 254: $x->type = 'char'; break;
97 97
         }
98 98
         return $x;
99 99
     }
Please login to merge, or discard this patch.
drupal/sites/default/boinc/modules/boinccore/boinccore.module 1 patch
Switch Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -551,12 +551,12 @@  discard block
 block discarded – undo
551 551
  */
552 552
 function boinccore_locale($op = 'groups', $group = NULL) {
553 553
   switch ($op) {
554
-    case 'groups':
555
-      return array('boinc' => bts('BOINC'));
556
-    case 'info':
557
-      //$info['boinc']['refresh callback'] = 'boinccore_locale_refresh';
558
-      $info['boinc']['format'] = FALSE;
559
-      return $info;
554
+  case 'groups':
555
+    return array('boinc' => bts('BOINC'));
556
+  case 'info':
557
+    //$info['boinc']['refresh callback'] = 'boinccore_locale_refresh';
558
+    $info['boinc']['format'] = FALSE;
559
+    return $info;
560 560
   }
561 561
 }
562 562
 
@@ -1885,19 +1885,19 @@  discard block
 block discarded – undo
1885 1885
     // Transform arguments before inserting them.
1886 1886
     foreach ($args as $key => $value) {
1887 1887
       switch ($key [0]) {
1888
-        case '@':
1889
-          // Escaped only.
1890
-          $args [$key] = check_plain($value);
1891
-          break;
1892
-
1893
-        case '%':
1894
-        default:
1895
-          // Escaped and placeholder.
1896
-          $args [$key] = theme('placeholder', $value);
1897
-          break;
1898
-
1899
-        case '!':
1900
-          // Pass-through.
1888
+      case '@':
1889
+        // Escaped only.
1890
+        $args [$key] = check_plain($value);
1891
+        break;
1892
+
1893
+      case '%':
1894
+      default:
1895
+        // Escaped and placeholder.
1896
+        $args [$key] = theme('placeholder', $value);
1897
+        break;
1898
+
1899
+      case '!':
1900
+        // Pass-through.
1901 1901
       }
1902 1902
     }
1903 1903
     return strtr($string, $args);
Please login to merge, or discard this patch.