@@ -7,7 +7,7 @@ |
||
| 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; |
@@ -7,7 +7,7 @@ |
||
| 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; |
@@ -7,7 +7,7 @@ |
||
| 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; |
@@ -7,7 +7,7 @@ |
||
| 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; |
@@ -7,7 +7,7 @@ |
||
| 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; |
@@ -33,25 +33,25 @@ |
||
| 33 | 33 | # fetch enabled regular expression |
| 34 | 34 | $catsql = "select ID,groupname,regex from releaseregex where status = 1"; |
| 35 | 35 | $res = $db->query($catsql); |
| 36 | -$total=count($res); |
|
| 37 | -$errcnt=0; |
|
| 36 | +$total = count($res); |
|
| 37 | +$errcnt = 0; |
|
| 38 | 38 | |
| 39 | 39 | echo "\n"; |
| 40 | 40 | foreach ($res as $regexrow) |
| 41 | 41 | { |
| 42 | - foreach ($regs as $regex){ |
|
| 42 | + foreach ($regs as $regex) { |
|
| 43 | 43 | try { |
| 44 | - $res=preg_match($regexrow["regex"], $regex); |
|
| 45 | - }catch(Exception $e){ |
|
| 44 | + $res = preg_match($regexrow["regex"], $regex); |
|
| 45 | + } catch (Exception $e) { |
|
| 46 | 46 | $errcnt++; |
| 47 | - $strerr=str_pad((int) $errcnt,2," ",STR_PAD_LEFT); |
|
| 48 | - echo "$strerr. id=".$regexrow["id"]. |
|
| 49 | - ", group=".$regexrow["groupname"]."\n"; |
|
| 50 | - echo " regex='".$regexrow["regex"]."'\n"; |
|
| 51 | - echo " error=".$e->getMessage()."\n\n"; |
|
| 47 | + $strerr = str_pad((int)$errcnt, 2, " ", STR_PAD_LEFT); |
|
| 48 | + echo "$strerr. id=" . $regexrow["id"] . |
|
| 49 | + ", group=" . $regexrow["groupname"] . "\n"; |
|
| 50 | + echo " regex='" . $regexrow["regex"] . "'\n"; |
|
| 51 | + echo " error=" . $e->getMessage() . "\n\n"; |
|
| 52 | 52 | break; |
| 53 | 53 | } |
| 54 | 54 | } |
| 55 | 55 | } |
| 56 | 56 | echo "Scanned $total record(s), $errcnt error(s) found.\n"; |
| 57 | -exit(($errcnt>0)?1:0); |
|
| 57 | +exit(($errcnt > 0) ? 1 : 0); |
|
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | // Use the first show found (highest match) and get the requested season/episode from $argv |
| 25 | 25 | if ($series) { |
| 26 | 26 | |
| 27 | - echo PHP_EOL . $c->info("Server Time: " . $serverTime) . PHP_EOL; |
|
| 27 | + echo PHP_EOL . $c->info("Server Time: " . $serverTime) . PHP_EOL; |
|
| 28 | 28 | print_r($series[0]); |
| 29 | 29 | |
| 30 | 30 | if ($season > 0 && $episode > 0 && $day === '') { |
@@ -14,8 +14,7 @@ discard block |
||
| 14 | 14 | } |
| 15 | 15 | |
| 16 | 16 | switch ((isset($_REQUEST['action']) ? $_REQUEST['action'] : 'view')) { |
| 17 | - case 'add': |
|
| 18 | - $page->title = "User Roles Add"; |
|
| 17 | + case 'add' : $page->title = "User Roles Add"; |
|
| 19 | 18 | $role = [ |
| 20 | 19 | 'id' => '', |
| 21 | 20 | 'name' => '', |
@@ -58,7 +57,7 @@ discard block |
||
| 58 | 57 | |
| 59 | 58 | $page->smarty->assign('yesno_ids', [1, 0]); |
| 60 | 59 | $page->smarty->assign('yesno_names', ['Yes', 'No']); |
| 61 | -$page->smarty->assign('catlist',$category->getForSelect(false)); |
|
| 60 | +$page->smarty->assign('catlist', $category->getForSelect(false)); |
|
| 62 | 61 | |
| 63 | 62 | $page->content = $page->smarty->fetch('role-edit.tpl'); |
| 64 | 63 | $page->render(); |