@@ -22,17 +22,17 @@ discard block |
||
| 22 | 22 | $percent; |
| 23 | 23 | foreach (getGitLog() as $i) { |
| 24 | 24 | $cont++; |
| 25 | - if($cont % $nPerCol == 1) |
|
| 25 | + if ($cont % $nPerCol == 1) |
|
| 26 | 26 | echo '<div class="row">'; |
| 27 | - if(isset($i["tag"])) { |
|
| 28 | - $percent = explode(".",$i["tag"]); |
|
| 27 | + if (isset($i["tag"])) { |
|
| 28 | + $percent = explode(".", $i["tag"]); |
|
| 29 | 29 | $percent = 100 * intval($percent[0]) + 10 * intval($percent[1]) + intval($percent[2]); |
| 30 | 30 | } |
| 31 | 31 | ?> |
| 32 | 32 | <div class="col-lg-<?=$dim?>"> |
| 33 | 33 | <div class="well well-sm miniblock"> |
| 34 | 34 | <div class="autor"><b>Autor:</b> <?=$i["author"]?><br></div> |
| 35 | - <div class="tag"><b>Tag:</b> <?php if(isset($i["tag"])) echo $i["tag"]?><br></div> |
|
| 35 | + <div class="tag"><b>Tag:</b> <?php if (isset($i["tag"])) echo $i["tag"]?><br></div> |
|
| 36 | 36 | <div class="date"><b>Date:</b> <?=$i["date"]?><br></div> |
| 37 | 37 | <div class="message"><b>Message:</b> <?=$i["message"]?><br></div> |
| 38 | 38 | <div class="progress"> |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | </div> |
| 45 | 45 | </div> |
| 46 | 46 | <?php |
| 47 | - if($cont % $nPerCol == 0) |
|
| 47 | + if ($cont % $nPerCol == 0) |
|
| 48 | 48 | echo '</div>'; |
| 49 | 49 | } ?> |
| 50 | 50 | </div> |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | - if(isset($GLOBALS["JATEPath"])) |
|
| 2 | + if (isset($GLOBALS["JATEPath"])) |
|
| 3 | 3 | $GLOBALS["JATEPath"] = []; |
| 4 | 4 | $commonLocations = array( |
| 5 | 5 | "bower_components/JATE/dist/", |
@@ -7,7 +7,7 @@ discard block |
||
| 7 | 7 | "../../dist/" |
| 8 | 8 | ); |
| 9 | 9 | foreach ($commonLocations as $i) |
| 10 | - if(file_exists($i."jate/coreEngine.php")) { |
|
| 10 | + if (file_exists($i."jate/coreEngine.php")) { |
|
| 11 | 11 | array_push($GLOBALS["JATEPath"], $i); |
| 12 | 12 | require_once($i."jate/coreEngine.php"); |
| 13 | 13 | break; |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | - if(!isset($GLOBALS["JATEPath"])) |
|
| 2 | + if (!isset($GLOBALS["JATEPath"])) |
|
| 3 | 3 | $GLOBALS["JATEPath"] = []; |
| 4 | 4 | $commonLocations = array( |
| 5 | 5 | "bower_components/JATE/dist/", |
@@ -7,7 +7,7 @@ discard block |
||
| 7 | 7 | "../../dist/" |
| 8 | 8 | ); |
| 9 | 9 | foreach ($commonLocations as $i) |
| 10 | - if(file_exists($i."jate/coreEngine.php")) { |
|
| 10 | + if (file_exists($i."jate/coreEngine.php")) { |
|
| 11 | 11 | array_push($GLOBALS["JATEPath"], $i); |
| 12 | 12 | require_once($i."jate/coreEngine.php"); |
| 13 | 13 | break; |
@@ -22,17 +22,17 @@ discard block |
||
| 22 | 22 | $percent; |
| 23 | 23 | foreach (getGitLog() as $i) { |
| 24 | 24 | $cont++; |
| 25 | - if($cont % $nPerCol == 1) |
|
| 25 | + if ($cont % $nPerCol == 1) |
|
| 26 | 26 | echo '<div class="row">'; |
| 27 | - if(isset($i["tag"])) { |
|
| 28 | - $percent = explode(".",$i["tag"]); |
|
| 27 | + if (isset($i["tag"])) { |
|
| 28 | + $percent = explode(".", $i["tag"]); |
|
| 29 | 29 | $percent = 100 * intval($percent[0]) + 10 * intval($percent[1]) + intval($percent[2]); |
| 30 | 30 | } |
| 31 | 31 | ?> |
| 32 | 32 | <div class="col-lg-<?=$dim?>"> |
| 33 | 33 | <div class="well well-sm miniblock"> |
| 34 | 34 | <div class="autor"><b>Autor:</b> <?=$i["author"]?><br></div> |
| 35 | - <div class="tag"><b>Tag:</b> <?php if(isset($i["tag"])) echo $i["tag"]?><br></div> |
|
| 35 | + <div class="tag"><b>Tag:</b> <?php if (isset($i["tag"])) echo $i["tag"]?><br></div> |
|
| 36 | 36 | <div class="date"><b>Date:</b> <?=$i["date"]?><br></div> |
| 37 | 37 | <div class="message"><b>Message:</b> <?=$i["message"]?><br></div> |
| 38 | 38 | <div class="progress"> |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | </div> |
| 45 | 45 | </div> |
| 46 | 46 | <?php |
| 47 | - if($cont % $nPerCol == 0) |
|
| 47 | + if ($cont % $nPerCol == 0) |
|
| 48 | 48 | echo '</div>'; |
| 49 | 49 | } ?> |
| 50 | 50 | </div> |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | require_once("main.php"); |
| 3 | - if(!isset($_GET["page"])) $_GET["page"] = "home"; |
|
| 3 | + if (!isset($_GET["page"])) $_GET["page"] = "home"; |
|
| 4 | 4 | $webApp->fetchPage($_GET["page"]); |
| 5 | 5 | $webApp->draw(); |
| 6 | 6 | ?> |
@@ -22,17 +22,17 @@ discard block |
||
| 22 | 22 | $percent; |
| 23 | 23 | foreach (getGitLog() as $i) { |
| 24 | 24 | $cont++; |
| 25 | - if($cont % $nPerCol == 1) |
|
| 25 | + if ($cont % $nPerCol == 1) |
|
| 26 | 26 | echo '<div class="row">'; |
| 27 | - if(isset($i["tag"])) { |
|
| 28 | - $percent = explode(".",$i["tag"]); |
|
| 27 | + if (isset($i["tag"])) { |
|
| 28 | + $percent = explode(".", $i["tag"]); |
|
| 29 | 29 | $percent = 100 * intval($percent[0]) + 10 * intval($percent[1]) + intval($percent[2]); |
| 30 | 30 | } |
| 31 | 31 | ?> |
| 32 | 32 | <div class="col-lg-<?=$dim?>"> |
| 33 | 33 | <div class="well well-sm miniblock"> |
| 34 | 34 | <div class="autor"><b>Autor:</b> <?=$i["author"]?><br></div> |
| 35 | - <div class="tag"><b>Tag:</b> <?php if(isset($i["tag"])) echo $i["tag"]?><br></div> |
|
| 35 | + <div class="tag"><b>Tag:</b> <?php if (isset($i["tag"])) echo $i["tag"]?><br></div> |
|
| 36 | 36 | <div class="date"><b>Date:</b> <?=$i["date"]?><br></div> |
| 37 | 37 | <div class="message"><b>Message:</b> <?=$i["message"]?><br></div> |
| 38 | 38 | <div class="progress"> |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | </div> |
| 45 | 45 | </div> |
| 46 | 46 | <?php |
| 47 | - if($cont % $nPerCol == 0) |
|
| 47 | + if ($cont % $nPerCol == 0) |
|
| 48 | 48 | echo '</div>'; |
| 49 | 49 | } ?> |
| 50 | 50 | </div> |
@@ -19,14 +19,14 @@ |
||
| 19 | 19 | public function makeConnection() { |
| 20 | 20 | global $jConfig; |
| 21 | 21 | $connection = null; |
| 22 | - if($jConfig->connection["enable"]) |
|
| 22 | + if ($jConfig->connection["enable"]) |
|
| 23 | 23 | $connection = new Connection( |
| 24 | 24 | $jConfig->connection["server"] |
| 25 | 25 | , $jConfig->connection["database"] |
| 26 | 26 | , $jConfig->connection["user"] |
| 27 | 27 | , $jConfig->connection["password"] |
| 28 | 28 | ); |
| 29 | - $this->addConnection("base",$connection); |
|
| 29 | + $this->addConnection("base", $connection); |
|
| 30 | 30 | } |
| 31 | 31 | } |
| 32 | 32 | ?> |
@@ -1,27 +1,27 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | function utf8ize($_array) { |
| 3 | - return travelStringArray($_array,"utf8_encode"); |
|
| 3 | + return travelStringArray($_array, "utf8_encode"); |
|
| 4 | 4 | } |
| 5 | 5 | function unutf8ize($_array) { |
| 6 | - return travelStringArray($_array,"utf8_decode"); |
|
| 6 | + return travelStringArray($_array, "utf8_decode"); |
|
| 7 | 7 | } |
| 8 | 8 | function arraySlash($_array) { |
| 9 | - return travelStringArray($_array,"addslashes"); |
|
| 9 | + return travelStringArray($_array, "addslashes"); |
|
| 10 | 10 | } |
| 11 | 11 | function arrayHtmlParser($_array) { |
| 12 | - return travelStringArray($_array,"htmlParser"); |
|
| 12 | + return travelStringArray($_array, "htmlParser"); |
|
| 13 | 13 | } |
| 14 | - function travelStringArray ( $_array, $_function ) { |
|
| 14 | + function travelStringArray($_array, $_function) { |
|
| 15 | 15 | if (is_array($_array)) { |
| 16 | 16 | foreach ($_array as $k => $v) { |
| 17 | 17 | $_array[$k] = travelStringArray($v, $_function); |
| 18 | 18 | } |
| 19 | - } else if (is_string ($_array)) { |
|
| 20 | - return call_user_func($_function,$_array); |
|
| 19 | + } else if (is_string($_array)) { |
|
| 20 | + return call_user_func($_function, $_array); |
|
| 21 | 21 | } |
| 22 | 22 | return $_array; |
| 23 | 23 | } |
| 24 | - function arrayDepth( $_array ) { |
|
| 24 | + function arrayDepth($_array) { |
|
| 25 | 25 | $maxDepth = 1; |
| 26 | 26 | foreach ($_array as $value) { |
| 27 | 27 | if (is_array($value)) { |
@@ -7,51 +7,51 @@ discard block |
||
| 7 | 7 | public $data; |
| 8 | 8 | public function __construct() { |
| 9 | 9 | $this->name = get_class($this); |
| 10 | - $this->modules = []; |
|
| 10 | + $this->modules = []; |
|
| 11 | 11 | $this->files = []; |
| 12 | - $this->required = []; |
|
| 12 | + $this->required = []; |
|
| 13 | 13 | $this->data = []; |
| 14 | 14 | } |
| 15 | 15 | // abstract public function config(); |
| 16 | 16 | // abstract public function init(); |
| 17 | 17 | // abstract public function draw(); |
| 18 | 18 | public function getCss() { |
| 19 | - return $this->getRequire("getCss",".css"); |
|
| 19 | + return $this->getRequire("getCss", ".css"); |
|
| 20 | 20 | } |
| 21 | 21 | public function getJs() { |
| 22 | - return $this->getRequire("getJs",".js"); |
|
| 22 | + return $this->getRequire("getJs", ".js"); |
|
| 23 | 23 | } |
| 24 | 24 | public function getJsVariables() { |
| 25 | 25 | $temp = []; |
| 26 | 26 | foreach ($this->required as $i) |
| 27 | 27 | if (is_array($i)) |
| 28 | - array_push($temp,$i); |
|
| 28 | + array_push($temp, $i); |
|
| 29 | 29 | foreach ($this->modules as $i) |
| 30 | - $temp = array_merge( $temp, $i->getJsVariables() ); |
|
| 30 | + $temp = array_merge($temp, $i->getJsVariables()); |
|
| 31 | 31 | foreach ($this->files as $i) |
| 32 | 32 | if (is_array($i)) |
| 33 | - array_push($temp,$i); |
|
| 33 | + array_push($temp, $i); |
|
| 34 | 34 | return $temp; |
| 35 | 35 | } |
| 36 | - public function addModules( $_mods ) { |
|
| 36 | + public function addModules($_mods) { |
|
| 37 | 37 | foreach ($_mods as $value) |
| 38 | 38 | $this->addModule($value); |
| 39 | 39 | } |
| 40 | - public function addModule( $_mod ) { |
|
| 40 | + public function addModule($_mod) { |
|
| 41 | 41 | $this->modules[$_mod->name] = $_mod; |
| 42 | 42 | } |
| 43 | - public function addFiles( $_files ) { |
|
| 43 | + public function addFiles($_files) { |
|
| 44 | 44 | foreach ($_files as $value) |
| 45 | 45 | $this->addFile($value); |
| 46 | 46 | } |
| 47 | - public function addFile( $_file ) { |
|
| 47 | + public function addFile($_file) { |
|
| 48 | 48 | array_push($this->files, $_file); |
| 49 | 49 | } |
| 50 | - public function addFilesRequired( $_files ) { |
|
| 50 | + public function addFilesRequired($_files) { |
|
| 51 | 51 | foreach ($_files as $value) |
| 52 | 52 | $this->addFileRequired($value); |
| 53 | 53 | } |
| 54 | - public function addFileRequired( $_file ) { |
|
| 54 | + public function addFileRequired($_file) { |
|
| 55 | 55 | array_push($this->required, $_file); |
| 56 | 56 | } |
| 57 | 57 | protected function addDipendences() { |
@@ -59,16 +59,16 @@ discard block |
||
| 59 | 59 | $this->data["js"] = $this->getJs(); |
| 60 | 60 | $this->data["jsVariables"] = $this->getJsVariables(); |
| 61 | 61 | } |
| 62 | - protected function getRequire( $_function, $_extenction) { |
|
| 62 | + protected function getRequire($_function, $_extenction) { |
|
| 63 | 63 | $temp = []; |
| 64 | 64 | foreach ($this->required as $i) |
| 65 | 65 | if (!is_array($i) && strpos($i, $_extenction) !== FALSE) |
| 66 | - array_push($temp,$i); |
|
| 66 | + array_push($temp, $i); |
|
| 67 | 67 | foreach ($this->modules as $i) |
| 68 | - $temp = array_merge( $temp, $i->$_function() ); |
|
| 68 | + $temp = array_merge($temp, $i->$_function()); |
|
| 69 | 69 | foreach ($this->files as $i) |
| 70 | 70 | if (!is_array($i) && strpos($i, $_extenction) !== FALSE) |
| 71 | - array_push($temp,$i); |
|
| 71 | + array_push($temp, $i); |
|
| 72 | 72 | return $temp; |
| 73 | 73 | } |
| 74 | 74 | } |