Passed
Push — dev ( 8c58d8...9b6cb9 )
by Darko
09:10
created
www/admin/console-list.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,16 +13,16 @@
 block discarded – undo
13 13
 $concount = $con->getCount();
14 14
 
15 15
 $offset = isset($_REQUEST["offset"]) ? $_REQUEST["offset"] : 0;
16
-$page->smarty->assign('pagertotalitems',$concount);
17
-$page->smarty->assign('pageroffset',$offset);
18
-$page->smarty->assign('pageritemsperpage',ITEMS_PER_PAGE);
19
-$page->smarty->assign('pagerquerybase', WWW_TOP."/console-list.php?offset=");
16
+$page->smarty->assign('pagertotalitems', $concount);
17
+$page->smarty->assign('pageroffset', $offset);
18
+$page->smarty->assign('pageritemsperpage', ITEMS_PER_PAGE);
19
+$page->smarty->assign('pagerquerybase', WWW_TOP . "/console-list.php?offset=");
20 20
 $pager = $page->smarty->fetch("pager.tpl");
21 21
 $page->smarty->assign('pager', $pager);
22 22
 
23 23
 $consolelist = $con->getRange($offset, ITEMS_PER_PAGE);
24 24
 
25
-$page->smarty->assign('consolelist',$consolelist);
25
+$page->smarty->assign('consolelist', $consolelist);
26 26
 
27 27
 $page->content = $page->smarty->fetch('console-list.tpl');
28 28
 $page->render();
Please login to merge, or discard this patch.
www/admin/ajax.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -17,27 +17,27 @@  discard block
 block discarded – undo
17 17
 $admin = new AdminPage;
18 18
 
19 19
 $settings = ['Settings' => $admin->settings];
20
-switch($_GET['action']) {
20
+switch ($_GET['action']) {
21 21
 	case 'binary_blacklist_delete':
22
-		$id = (int) $_GET['row_id'];
22
+		$id = (int)$_GET['row_id'];
23 23
 		(new Binaries($settings))->deleteBlacklist($id);
24 24
 		print "Blacklist $id deleted.";
25 25
 		break;
26 26
 
27 27
 	case 'category_regex_delete':
28
-		$id = (int) $_GET['row_id'];
28
+		$id = (int)$_GET['row_id'];
29 29
 		(new Regexes(['Settings' => $admin->settings, 'Table_Name' => 'category_regexes']))->deleteRegex($id);
30 30
 		print "Regex $id deleted.";
31 31
 		break;
32 32
 
33 33
 	case 'collection_regex_delete':
34
-		$id = (int) $_GET['row_id'];
34
+		$id = (int)$_GET['row_id'];
35 35
 		(new Regexes(['Settings' => $admin->settings, 'Table_Name' => 'collection_regexes']))->deleteRegex($id);
36 36
 		print "Regex $id deleted.";
37 37
 		break;
38 38
 
39 39
 	case 'release_naming_regex_delete':
40
-		$id = (int) $_GET['row_id'];
40
+		$id = (int)$_GET['row_id'];
41 41
 		(new Regexes(['Settings' => $admin->settings, 'Table_Name' => 'release_naming_regexes']))->deleteRegex($id);
42 42
 		print "Regex $id deleted.";
43 43
 		break;
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 
144 144
 	case 'sharing_toggle_hide_users':
145 145
 		$admin->settings->queryExec(sprintf('UPDATE sharing SET hide_users = %d', $_GET['hide_status']));
146
-		print ($_GET['hide_status'] == 1? 'Enabled' : 'Disabled') . ' hiding of user names!';
146
+		print ($_GET['hide_status'] == 1 ? 'Enabled' : 'Disabled') . ' hiding of user names!';
147 147
 		break;
148 148
 
149 149
 	case 'sharing_toggle_all_sites':
Please login to merge, or discard this patch.
Upper-Lower-Casing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -21,25 +21,25 @@  discard block
 block discarded – undo
21 21
 	case 'binary_blacklist_delete':
22 22
 		$id = (int) $_GET['row_id'];
23 23
 		(new Binaries($settings))->deleteBlacklist($id);
24
-		print "Blacklist $id deleted.";
24
+		print "blacklist $id deleted.";
25 25
 		break;
26 26
 
27 27
 	case 'category_regex_delete':
28 28
 		$id = (int) $_GET['row_id'];
29 29
 		(new Regexes(['Settings' => $admin->settings, 'Table_Name' => 'category_regexes']))->deleteRegex($id);
30
-		print "Regex $id deleted.";
30
+		print "regex $id deleted.";
31 31
 		break;
32 32
 
33 33
 	case 'collection_regex_delete':
34 34
 		$id = (int) $_GET['row_id'];
35 35
 		(new Regexes(['Settings' => $admin->settings, 'Table_Name' => 'collection_regexes']))->deleteRegex($id);
36
-		print "Regex $id deleted.";
36
+		print "regex $id deleted.";
37 37
 		break;
38 38
 
39 39
 	case 'release_naming_regex_delete':
40 40
 		$id = (int) $_GET['row_id'];
41 41
 		(new Regexes(['Settings' => $admin->settings, 'Table_Name' => 'release_naming_regexes']))->deleteRegex($id);
42
-		print "Regex $id deleted.";
42
+		print "regex $id deleted.";
43 43
 		break;
44 44
 
45 45
 	case 'group_edit_purge_all':
@@ -57,21 +57,21 @@  discard block
 block discarded – undo
57 57
 		$id = (int)$_GET['group_id'];
58 58
 		session_write_close();
59 59
 		(new Groups($settings))->purge($id);
60
-		print "Group $id purged.";
60
+		print "group $id purged.";
61 61
 		break;
62 62
 
63 63
 	case 'group_edit_reset_single':
64 64
 		$id = (int)$_GET['group_id'];
65 65
 		session_write_close();
66 66
 		(new Groups($settings))->reset($id);
67
-		print "Group $id reset.";
67
+		print "group $id reset.";
68 68
 		break;
69 69
 
70 70
 	case 'group_edit_delete_single':
71 71
 		$id = (int)$_GET['group_id'];
72 72
 		session_write_close();
73 73
 		(new Groups($settings))->delete($id);
74
-		print "Group $id deleted.";
74
+		print "group $id deleted.";
75 75
 		break;
76 76
 
77 77
 	case 'toggle_group_active_status':
Please login to merge, or discard this patch.
www/admin/role-delete.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,8 +6,7 @@
 block discarded – undo
6 6
 
7 7
 $page = new AdminPage();
8 8
 
9
-if (isset($_GET['id']))
10
-{
9
+if (isset($_GET['id'])) {
11 10
 	$users = new Users();
12 11
 	$users->deleteRole($_GET['id']);
13 12
 }
Please login to merge, or discard this patch.
www/admin/music-list.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,16 +14,16 @@
 block discarded – undo
14 14
 $mcount = $m->getCount();
15 15
 
16 16
 $offset = isset($_REQUEST["offset"]) ? $_REQUEST["offset"] : 0;
17
-$page->smarty->assign('pagertotalitems',$mcount);
18
-$page->smarty->assign('pageroffset',$offset);
19
-$page->smarty->assign('pageritemsperpage',ITEMS_PER_PAGE);
20
-$page->smarty->assign('pagerquerybase', WWW_TOP."/music-list.php?offset=");
17
+$page->smarty->assign('pagertotalitems', $mcount);
18
+$page->smarty->assign('pageroffset', $offset);
19
+$page->smarty->assign('pageritemsperpage', ITEMS_PER_PAGE);
20
+$page->smarty->assign('pagerquerybase', WWW_TOP . "/music-list.php?offset=");
21 21
 $pager = $page->smarty->fetch("pager.tpl");
22 22
 $page->smarty->assign('pager', $pager);
23 23
 
24 24
 $musiclist = $m->getRange($offset, ITEMS_PER_PAGE);
25 25
 
26
-$page->smarty->assign('musiclist',$musiclist);
26
+$page->smarty->assign('musiclist', $musiclist);
27 27
 
28 28
 $page->content = $page->smarty->fetch('music-list.tpl');
29 29
 $page->render();
Please login to merge, or discard this patch.
www/admin/regex-edit.php 3 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@  discard block
 block discarded – undo
16 16
 
17 17
 switch($action)
18 18
 {
19
-    case 'submit':
20
-	    if ($_POST["id"] == "")
21
-    	{
19
+	case 'submit':
20
+		if ($_POST["id"] == "")
21
+		{
22 22
 			$reg->add($_POST);
23 23
 			}
24 24
 			else
@@ -27,14 +27,14 @@  discard block
 block discarded – undo
27 27
 			}
28 28
 		header("Location:".WWW_TOP."/regex-list.php");
29 29
 		break;
30
-    case 'addtest':
31
-    	if (isset($_GET['regex']) && isset($_GET['groupname'])) {
32
-    		$r = array('groupname'=>$_GET['groupname'], 'regex'=>$_GET['regex'], 'ordinal'=>'1', 'status'=>'1');
33
-    		$page->smarty->assign('regex', $r);
34
-    	}
35
-    	break;
36
-    case 'view':
37
-    default:
30
+	case 'addtest':
31
+		if (isset($_GET['regex']) && isset($_GET['groupname'])) {
32
+			$r = array('groupname'=>$_GET['groupname'], 'regex'=>$_GET['regex'], 'ordinal'=>'1', 'status'=>'1');
33
+			$page->smarty->assign('regex', $r);
34
+		}
35
+		break;
36
+	case 'view':
37
+	default:
38 38
 
39 39
 			$page->title = "Release Regex Add";
40 40
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 			}
54 54
 			$page->smarty->assign('regex', $r);
55 55
 
56
-      break;
56
+	  break;
57 57
 }
58 58
 
59 59
 $page->smarty->assign('status_ids', array(Category::STATUS_ACTIVE,Category::STATUS_INACTIVE));
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 // set the current action
15 15
 $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'view';
16 16
 
17
-switch($action)
17
+switch ($action)
18 18
 {
19 19
     case 'submit':
20 20
 	    if ($_POST["id"] == "")
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 			{
26 26
 				$ret = $reg->update($_POST);
27 27
 			}
28
-		header("Location:".WWW_TOP."/regex-list.php");
28
+		header("Location:" . WWW_TOP . "/regex-list.php");
29 29
 		break;
30 30
     case 'addtest':
31 31
     	if (isset($_GET['regex']) && isset($_GET['groupname'])) {
@@ -56,10 +56,10 @@  discard block
 block discarded – undo
56 56
       break;
57 57
 }
58 58
 
59
-$page->smarty->assign('status_ids', array(Category::STATUS_ACTIVE,Category::STATUS_INACTIVE));
60
-$page->smarty->assign('status_names', array( 'Yes', 'No'));
59
+$page->smarty->assign('status_ids', array(Category::STATUS_ACTIVE, Category::STATUS_INACTIVE));
60
+$page->smarty->assign('status_names', array('Yes', 'No'));
61 61
 
62
-$page->smarty->assign('catlist',$category->getForSelect(true));
62
+$page->smarty->assign('catlist', $category->getForSelect(true));
63 63
 
64 64
 $page->content = $page->smarty->fetch('regex-edit.tpl');
65 65
 $page->render();
Please login to merge, or discard this patch.
Braces   +5 added lines, -12 removed lines patch added patch discarded remove patch
@@ -14,15 +14,11 @@  discard block
 block discarded – undo
14 14
 // set the current action
15 15
 $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'view';
16 16
 
17
-switch($action)
18
-{
17
+switch($action) {
19 18
     case 'submit':
20
-	    if ($_POST["id"] == "")
21
-    	{
19
+	    if ($_POST["id"] == "") {
22 20
 			$reg->add($_POST);
23
-			}
24
-			else
25
-			{
21
+			} else {
26 22
 				$ret = $reg->update($_POST);
27 23
 			}
28 24
 		header("Location:".WWW_TOP."/regex-list.php");
@@ -38,16 +34,13 @@  discard block
 block discarded – undo
38 34
 
39 35
 			$page->title = "Release Regex Add";
40 36
 
41
-			if (isset($_GET["id"]))
42
-			{
37
+			if (isset($_GET["id"])) {
43 38
 				$page->title = "Release Regex Edit";
44 39
 				$id = $_GET["id"];
45 40
 
46 41
 				$r = $reg->getByID($id);
47 42
 
48
-			}
49
-			else
50
-			{
43
+			} else {
51 44
 				$r = [];
52 45
 				$r["status"] = 1;
53 46
 			}
Please login to merge, or discard this patch.
misc/update/update_binaries.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,6 +28,5 @@
 block discarded – undo
28 28
 			(isset($argv[2]) && is_numeric($argv[2]) && $argv[2] > 0 ? $argv[2] : $maxHeaders));
29 29
 	}
30 30
 } else {
31
-	$binaries->updateAllGroups((isset($argv[1]) && is_numeric($argv[1]) && $argv[1] > 0 ? $argv[1] :
32
-		$maxHeaders));
31
+	$binaries->updateAllGroups((isset($argv[1]) && is_numeric($argv[1]) && $argv[1] > 0 ? $argv[1] : $maxHeaders));
33 32
 }
Please login to merge, or discard this patch.
misc/update/nix/multiprocessing/binaries.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 		'Argument 1 => (Number) Set to 0 to ignore, else fetches up to x new headers for every active group.' . PHP_EOL
5 5
 	);
6 6
 }
7
-declare(ticks=1);
7
+declare(ticks = 1);
8 8
 require('.do_not_run/require.php');
9 9
 use nntmux\libraries\Forking;
10 10
 (new Forking())->processWorkType('binaries', array(0 => $argv[1]));
11 11
\ No newline at end of file
Please login to merge, or discard this patch.
misc/update/nix/multiprocessing/postprocess.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,13 +7,13 @@
 block discarded – undo
7 7
 		'mov => Do movie processing.' . PHP_EOL .
8 8
 		'nfo => Do NFO processing.' . PHP_EOL .
9 9
 		'sha => Do sharing processing, this does not use multi-processing.' . PHP_EOL .
10
-		'tv  => Do TV processing.' . PHP_EOL .  PHP_EOL .
10
+		'tv  => Do TV processing.' . PHP_EOL . PHP_EOL .
11 11
 		'Second argument (optional):' . PHP_EOL .
12 12
 		'true|false => Only post-process renamed releases. This is for the mov|tv options.' . PHP_EOL
13 13
 	);
14 14
 }
15 15
 
16
-declare(ticks=1);
16
+declare(ticks = 1);
17 17
 require('.do_not_run/require.php');
18 18
 
19 19
 use nntmux\libraries\Forking;
Please login to merge, or discard this patch.
misc/update/nix/multiprocessing/safe.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 	);
8 8
 }
9 9
 
10
-declare(ticks=1);
10
+declare(ticks = 1);
11 11
 require('.do_not_run/require.php');
12 12
 
13 13
 use \nntmux\libraries\Forking;
Please login to merge, or discard this patch.