@@ -247,38 +247,4 @@ |
||
| 247 | 247 | return<<<EOF |
| 248 | 248 | "$software$counter": { |
| 249 | 249 | "display" : "IIS Access #$counter", |
| 250 | - "path" : $file_json_encoded, |
|
| 251 | - "refresh" : 0, |
|
| 252 | - "max" : 10, |
|
| 253 | - "notify" : false, |
|
| 254 | - "format" : { |
|
| 255 | - "type" : "NCSA Common", |
|
| 256 | - "regex" : "|^((\\\\S*) )*(\\\\S*) (\\\\S*) (\\\\S*) \\\\[(.*)\\\\] \"(\\\\S*) (.*) (\\\\S*)\" ([0-9]*) (.*)( \\"(.*)\\" \\"(.*)\\"( [0-9]*/([0-9]*))*)*\$|U", |
|
| 257 | - "export_title" : "URL", |
|
| 258 | - "match" : { |
|
| 259 | - "Date" : 6, |
|
| 260 | - "IP" : 3, |
|
| 261 | - "CMD" : 7, |
|
| 262 | - "URL" : 8, |
|
| 263 | - "Code" : 10, |
|
| 264 | - "Size" : 11, |
|
| 265 | - "User" : 5 |
|
| 266 | - }, |
|
| 267 | - "types" : { |
|
| 268 | - "Date" : "date:H:i:s", |
|
| 269 | - "IP" : "ip:geo", |
|
| 270 | - "URL" : "txt", |
|
| 271 | - "Code" : "badge:http", |
|
| 272 | - "Size" : "numeral:0b" |
|
| 273 | - }, |
|
| 274 | - "exclude" : { |
|
| 275 | - "URL": ["\/favicon.ico\/", "\/\\\\.pml\\\\.php\\\\.*\$\/"], |
|
| 276 | - "CMD": ["\/OPTIONS\/"] |
|
| 277 | - } |
|
| 278 | - } |
|
| 279 | - } |
|
| 280 | - EOF; |
|
| 281 | - |
|
| 282 | - } |
|
| 283 | - |
|
| 284 | -} |
|
| 285 | 250 | \ No newline at end of file |
| 251 | + "path" : $file_json_encoded |
|
| 286 | 252 | \ No newline at end of file |
@@ -114,43 +114,4 @@ |
||
| 114 | 114 | return<<<EOF |
| 115 | 115 | "$software$counter": { |
| 116 | 116 | "display" : "NGINX Access #$counter", |
| 117 | - "path" : $file_json_encoded, |
|
| 118 | - "refresh" : 0, |
|
| 119 | - "max" : 10, |
|
| 120 | - "notify" : false, |
|
| 121 | - "format" : { |
|
| 122 | - "type" : "NCSA Extended", |
|
| 123 | - "regex" : "|^((\\\\S*) )*(\\\\S*) (\\\\S*) (\\\\S*) \\\\[(.*)\\\\] \"(\\\\S*) (.*) (\\\\S*)\" ([0-9]*) (.*)( \\"(.*)\\" \\"(.*)\\"( [0-9]*/([0-9]*))*)*\$|U", |
|
| 124 | - "export_title" : "URL", |
|
| 125 | - "match" : { |
|
| 126 | - "Date" : 6, |
|
| 127 | - "IP" : 3, |
|
| 128 | - "CMD" : 7, |
|
| 129 | - "URL" : 8, |
|
| 130 | - "Code" : 10, |
|
| 131 | - "Size" : 11, |
|
| 132 | - "Referer" : 13, |
|
| 133 | - "UA" : 14, |
|
| 134 | - "User" : 5 |
|
| 135 | - }, |
|
| 136 | - "types": { |
|
| 137 | - "Date" : "date:H:i:s", |
|
| 138 | - "IP" : "ip:geo", |
|
| 139 | - "URL" : "txt", |
|
| 140 | - "Code" : "badge:http", |
|
| 141 | - "Size" : "numeral:0b", |
|
| 142 | - "Referer" : "link", |
|
| 143 | - "UA" : "ua:{os.name} {os.version} | {browser.name} {browser.version}\/100" |
|
| 144 | - }, |
|
| 145 | - "exclude": { |
|
| 146 | - "URL": ["\/favicon.ico\/", "\/\\\\.pml\\\\.php\\\\.*\$\/"], |
|
| 147 | - "CMD": ["\/OPTIONS\/"] |
|
| 148 | - } |
|
| 149 | - } |
|
| 150 | - } |
|
| 151 | - EOF; |
|
| 152 | - |
|
| 153 | - } |
|
| 154 | - } |
|
| 155 | - |
|
| 156 | -} |
|
| 157 | 117 | \ No newline at end of file |
| 118 | + "path" : $file_json_encoded |
|
| 158 | 119 | \ No newline at end of file |
@@ -63,34 +63,4 @@ |
||
| 63 | 63 | return<<<EOF |
| 64 | 64 | "$software$counter": { |
| 65 | 65 | "display" : "PHP Error #$counter", |
| 66 | - "path" : $file_json_encoded, |
|
| 67 | - "refresh" : 5, |
|
| 68 | - "max" : 10, |
|
| 69 | - "notify" : true, |
|
| 70 | - "format" : { |
|
| 71 | - "type" : "PHP", |
|
| 72 | - "regex" : "@^\\\\[(.*)-(.*)-(.*) (.*):(.*):(.*)( (.*))*\\\\] ((PHP (.*): (.*) in (.*) on line (.*))|(.*))\$@U", |
|
| 73 | - "export_title" : "Error", |
|
| 74 | - "match" : { |
|
| 75 | - "Date" : [ 2 , " " , 1 , " " , 4 , ":" , 5 , ":" , 6 , " " , 3 ], |
|
| 76 | - "Severity" : 11, |
|
| 77 | - "Error" : [ 12 , 15 ], |
|
| 78 | - "File" : 13, |
|
| 79 | - "Line" : 14 |
|
| 80 | - }, |
|
| 81 | - "types" : { |
|
| 82 | - "Date" : "date:H:i:s", |
|
| 83 | - "Severity" : "badge:severity", |
|
| 84 | - "File" : "pre:\/-69", |
|
| 85 | - "Line" : "numeral", |
|
| 86 | - "Error" : "pre" |
|
| 87 | - }, |
|
| 88 | - "exclude": { |
|
| 89 | - "Log": ["\\\\/PHP Stack trace:\\\\/", "\\\\/PHP *[0-9]*\\\\. \\\\/"] |
|
| 90 | - } |
|
| 91 | - } |
|
| 92 | - } |
|
| 93 | - EOF; |
|
| 94 | - } |
|
| 95 | - |
|
| 96 | -} |
|
| 97 | 66 | \ No newline at end of file |
| 67 | + "path" : $file_json_encoded |
|
| 98 | 68 | \ No newline at end of file |
@@ -47,6 +47,7 @@ |
||
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | 49 | * Tirardaqui |
| 50 | + * @param string $folder |
|
| 50 | 51 | */ |
| 51 | 52 | public function export($folder) |
| 52 | 53 | { |
@@ -56,6 +56,7 @@ |
||
| 56 | 56 | /** |
| 57 | 57 | * Execute the console command. |
| 58 | 58 | * |
| 59 | + * @param string $folder |
|
| 59 | 60 | * @return mixed |
| 60 | 61 | */ |
| 61 | 62 | public function midiaFinder($folder) |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | * Get the database connection. |
| 86 | 86 | * |
| 87 | 87 | * @param string $name |
| 88 | - * @return array|string |
|
| 88 | + * @return boolean |
|
| 89 | 89 | */ |
| 90 | 90 | protected function getConnection($name) |
| 91 | 91 | { |
@@ -314,7 +314,7 @@ |
||
| 314 | 314 | * Get argument value from user informed arguments. |
| 315 | 315 | * |
| 316 | 316 | * @param string $name argument name. |
| 317 | - * @return Mixed argument value. |
|
| 317 | + * @return string argument value. |
|
| 318 | 318 | */ |
| 319 | 319 | protected function getArgumentValue($name) |
| 320 | 320 | { |
@@ -40,6 +40,9 @@ |
||
| 40 | 40 | return $this->parent; |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | + /** |
|
| 44 | + * @param boolean $parent |
|
| 45 | + */ |
|
| 43 | 46 | public function setParent($parent) |
| 44 | 47 | { |
| 45 | 48 | $this->parent = $parent; |
@@ -238,7 +238,7 @@ |
||
| 238 | 238 | /** |
| 239 | 239 | * Get the services provided by the provider. |
| 240 | 240 | * |
| 241 | - * @return array |
|
| 241 | + * @return string[] |
|
| 242 | 242 | */ |
| 243 | 243 | public function provides() |
| 244 | 244 | { |