@@ -4,7 +4,7 @@ |
||
| 4 | 4 | $modDate = date(DATE_RFC822, time($path)); |
| 5 | 5 | $ownerInfo['name'] = ''; |
| 6 | 6 | $isWritable = is_writable($path); |
| 7 | -$save = $isWritable ? '<a href="#" id="save" style="color:blue" onClick="save(\'' . $path . '\')" >save</a><br />' : '<span style="color:red">Read Only</span>'; |
|
| 7 | +$save = $isWritable ? '<a href="#" id="save" style="color:blue" onClick="save(\''.$path.'\')" >save</a><br />' : '<span style="color:red">Read Only</span>'; |
|
| 8 | 8 | $info = pathinfo($path); |
| 9 | 9 | if (isset($info['extension'])) { |
| 10 | 10 | $ext = $info['extension']; |
@@ -9,8 +9,8 @@ |
||
| 9 | 9 | //$tree->tree('#container_id1', $files['page'], '<span class=\"tree_label\">Page</span>'); |
| 10 | 10 | //$tree->tree('#container_id2', $files['ro'], '<span class=\"tree_label\">Resource</span>'); |
| 11 | 11 | //$tree->tree('#container_id3', $files['view'], '<span class=\"tree_label\">View template</span>'); |
| 12 | -$tree->tree('#container_id', '/' , '<span class=\"tree_label\">Project</span>'); |
|
| 13 | -$initialOpeningFile =$root . '/'; |
|
| 12 | +$tree->tree('#container_id', '/', '<span class=\"tree_label\">Project</span>'); |
|
| 13 | +$initialOpeningFile = $root.'/'; |
|
| 14 | 14 | $js = $tree->getJsCode($initialOpeningFile); |
| 15 | 15 | |
| 16 | 16 | echo $js; |
@@ -15,22 +15,22 @@ |
||
| 15 | 15 | // |
| 16 | 16 | |
| 17 | 17 | $dir = $_POST['dir']; |
| 18 | -if( file_exists($_POST['dir']) ) { |
|
| 18 | +if (file_exists($_POST['dir'])) { |
|
| 19 | 19 | $files = scandir($_POST['dir']); |
| 20 | 20 | natcasesort($files); |
| 21 | - if( count($files) > 2 ) { /* The 2 accounts for . and .. */ |
|
| 21 | + if (count($files) > 2) { /* The 2 accounts for . and .. */ |
|
| 22 | 22 | echo "<ul class=\"tree\" style=\"display: none;\">"; |
| 23 | 23 | // All dirs |
| 24 | - foreach( $files as $file ) { |
|
| 25 | - if( file_exists($_POST['dir'] . $file) && $file != '.' && $file != '..' && is_dir($_POST['dir'] . $file) ) { |
|
| 26 | - echo "<li class=\"directory collapsed\"><a href=\"#\" rel=\"" . htmlentities($_POST['dir'] . $file) . "/\">" . htmlentities($file) . "</a></li>"; |
|
| 24 | + foreach ($files as $file) { |
|
| 25 | + if (file_exists($_POST['dir'].$file) && $file != '.' && $file != '..' && is_dir($_POST['dir'].$file)) { |
|
| 26 | + echo "<li class=\"directory collapsed\"><a href=\"#\" rel=\"".htmlentities($_POST['dir'].$file)."/\">".htmlentities($file)."</a></li>"; |
|
| 27 | 27 | } |
| 28 | 28 | } |
| 29 | 29 | // All files |
| 30 | - foreach( $files as $file ) { |
|
| 31 | - if( file_exists($_POST['dir'] . $file) && $file != '.' && $file != '..' && !is_dir($_POST['dir'] . $file) ) { |
|
| 30 | + foreach ($files as $file) { |
|
| 31 | + if (file_exists($_POST['dir'].$file) && $file != '.' && $file != '..' && !is_dir($_POST['dir'].$file)) { |
|
| 32 | 32 | $ext = preg_replace('/^.*\./', '', $file); |
| 33 | - echo "<li class=\"file ext_$ext\"><a href=\"#\" rel=\"" . htmlentities($_POST['dir'] . $file) . "\">" . htmlentities($file) . "</a></li>"; |
|
| 33 | + echo "<li class=\"file ext_$ext\"><a href=\"#\" rel=\"".htmlentities($_POST['dir'].$file)."\">".htmlentities($file)."</a></li>"; |
|
| 34 | 34 | } |
| 35 | 35 | } |
| 36 | 36 | echo "</ul>"; |
@@ -11,24 +11,24 @@ |
||
| 11 | 11 | |
| 12 | 12 | // All dirs |
| 13 | 13 | foreach ($files as $file) { |
| 14 | - if (file_exists($dir . $file) && $file != '.' && $file != '..' && is_dir($dir . $file)) { |
|
| 14 | + if (file_exists($dir.$file) && $file != '.' && $file != '..' && is_dir($dir.$file)) { |
|
| 15 | 15 | if ((substr($file, 0, 1) !== '.') && (substr($file, 0, 2) !== '__')) { |
| 16 | 16 | $html .= "<li class=\"directory collapsed\"><a onclick=\"folder_select('"; |
| 17 | - $html .= htmlspecialchars($dir . $file) . "');\" href=\"#\" rel=\"" . htmlspecialchars( |
|
| 18 | - $dir . $file |
|
| 19 | - ) . "/\">"; |
|
| 20 | - $html .= htmlspecialchars($file) . "</a></li>"; |
|
| 17 | + $html .= htmlspecialchars($dir.$file)."');\" href=\"#\" rel=\"".htmlspecialchars( |
|
| 18 | + $dir.$file |
|
| 19 | + )."/\">"; |
|
| 20 | + $html .= htmlspecialchars($file)."</a></li>"; |
|
| 21 | 21 | } |
| 22 | 22 | } |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | // All files |
| 26 | 26 | foreach ($files as $file) { |
| 27 | - if (file_exists($dir . $file) && $file != '.' && $file != '..' && !is_dir($dir . $file)) { |
|
| 27 | + if (file_exists($dir.$file) && $file != '.' && $file != '..' && !is_dir($dir.$file)) { |
|
| 28 | 28 | $ext = preg_replace('/^.*\./', '', $file); |
| 29 | 29 | if (substr($file, 0, 1) !== '.') { |
| 30 | - $html .= "<li class=\"file ext_$ext\"><a href=\"#\" rel=\"" . htmlspecialchars($dir . $file); |
|
| 31 | - $html .= "\">" . htmlspecialchars($file) . '</a></li>'; |
|
| 30 | + $html .= "<li class=\"file ext_$ext\"><a href=\"#\" rel=\"".htmlspecialchars($dir.$file); |
|
| 31 | + $html .= "\">".htmlspecialchars($file).'</a></li>'; |
|
| 32 | 32 | } |
| 33 | 33 | } |
| 34 | 34 | } |
@@ -7,6 +7,6 @@ |
||
| 7 | 7 | */ |
| 8 | 8 | $view['base'] = basename(__DIR__); |
| 9 | 9 | $root = $appDir; |
| 10 | -$html = include __DIR__ . '/view.php'; |
|
| 10 | +$html = include __DIR__.'/view.php'; |
|
| 11 | 11 | |
| 12 | 12 | echo $html; |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | |
| 11 | 11 | if (isset($_GET['property'])) { |
| 12 | 12 | $graph = (new Printo($app))->setRange(Printo::RANGE_PROPERTY)->setLinkDistance(130)->setCharge(-500); |
| 13 | - $a1 =$disabled; |
|
| 13 | + $a1 = $disabled; |
|
| 14 | 14 | } elseif (isset($_GET['full'])) { |
| 15 | 15 | $graph = (new Printo($app))->setRange(Printo::RANGE_ALL); |
| 16 | 16 | $a3 = $disabled; |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | $view['app_name'] = get_class($app); |
| 23 | -$contentsForLayout =<<<EOT |
|
| 23 | +$contentsForLayout = <<<EOT |
|
| 24 | 24 | <ul class="breadcrumb"> |
| 25 | 25 | <li><a href="/dev">Home</a> </li> |
| 26 | 26 | <li class="active">Application</li> |
@@ -33,4 +33,4 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | {$graph} |
| 35 | 35 | EOT; |
| 36 | -echo include dirname(__DIR__) . '/view/layout.php'; |
|
| 36 | +echo include dirname(__DIR__).'/view/layout.php'; |
|
@@ -15,13 +15,13 @@ discard block |
||
| 15 | 15 | //$module->activate(); |
| 16 | 16 | //$bindings = nl2br((string)$module); |
| 17 | 17 | |
| 18 | -$bindings = nl2br((string)$injector); |
|
| 18 | +$bindings = nl2br((string) $injector); |
|
| 19 | 19 | $bindings = preg_replace('/\w+:/', '<span style="background-color: #FFFFCC; font-weight:bold">$0</span>', $bindings); |
| 20 | -$injections = nl2br((string)$injector->getLogger()); |
|
| 20 | +$injections = nl2br((string) $injector->getLogger()); |
|
| 21 | 21 | $injections = preg_replace('/\w+:/', '<span style="background-color: #FFFFCC; font-weight:bold">$0</span>', $injections); |
| 22 | 22 | $injections = preg_replace('/#singleton/', '<span style="color: gray; ">$0</span>', $injections); |
| 23 | 23 | $injections = preg_replace('/#prototype/', '<span style="color: red; ">$0</span>', $injections); |
| 24 | -$contentsForLayout =<<<EOT |
|
| 24 | +$contentsForLayout = <<<EOT |
|
| 25 | 25 | <ul class="breadcrumb"> |
| 26 | 26 | <li><a href="/dev">Home</a> </li> |
| 27 | 27 | <li class="active">Di log</li> |
@@ -37,4 +37,4 @@ discard block |
||
| 37 | 37 | </div> |
| 38 | 38 | EOT; |
| 39 | 39 | |
| 40 | -echo include dirname(__DIR__) . '/view/layout.php'; |
|
| 40 | +echo include dirname(__DIR__).'/view/layout.php'; |
|
@@ -6,13 +6,13 @@ discard block |
||
| 6 | 6 | * @global $appDir string |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | -error_log('app files cleared by ' . __FILE__); |
|
| 10 | -require $appDir . '/bin/clear.php'; |
|
| 9 | +error_log('app files cleared by '.__FILE__); |
|
| 10 | +require $appDir.'/bin/clear.php'; |
|
| 11 | 11 | |
| 12 | 12 | |
| 13 | 13 | $view['app_name'] = get_class($app); |
| 14 | 14 | $time = date('r', time()); |
| 15 | -$contentsForLayout =<<<EOT |
|
| 15 | +$contentsForLayout = <<<EOT |
|
| 16 | 16 | <ul class="breadcrumb"> |
| 17 | 17 | <li><a href="/devs">Home</a> </li> |
| 18 | 18 | <li class="active">Clear</li> |
@@ -26,4 +26,4 @@ discard block |
||
| 26 | 26 | <span class="btn btn-default"><span class="glyphicon glyphicon-trash"></span> Retry</span></a> |
| 27 | 27 | EOT; |
| 28 | 28 | |
| 29 | -echo include dirname(__DIR__) . '/view/layout.php'; |
|
| 29 | +echo include dirname(__DIR__).'/view/layout.php'; |
|
@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | use BEAR\Package\Dev\Resource\ResourceLog; |
| 9 | 9 | |
| 10 | 10 | dependency: { |
| 11 | - $file = $appDir . '/var/log/resource.db'; |
|
| 11 | + $file = $appDir.'/var/log/resource.db'; |
|
| 12 | 12 | $cacheClear = isset($_GET['clear']); |
| 13 | 13 | } |
| 14 | 14 | |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | $view['log'] = (new ResourceLog($file))->toTable(); |
| 26 | 26 | } |
| 27 | 27 | output: { |
| 28 | - $contentsForLayout = \DbugL::$css . <<<EOT |
|
| 28 | + $contentsForLayout = \DbugL::$css.<<<EOT |
|
| 29 | 29 | <ul class="breadcrumb"> |
| 30 | 30 | <li><a href="/dev">Home</a> </li> |
| 31 | 31 | <li class="active">Log</li> |
@@ -33,5 +33,5 @@ discard block |
||
| 33 | 33 | <p><a href="index"><span class="btn">Reload</span></a> <a href="index?clear"><span class="btn">Clear</span></a></p> |
| 34 | 34 | {$view['log']} |
| 35 | 35 | EOT; |
| 36 | - echo include dirname(__DIR__) . '/view/layout.php'; |
|
| 36 | + echo include dirname(__DIR__).'/view/layout.php'; |
|
| 37 | 37 | } |