• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

HawkBitPhp / hawkbit-presentation / 13
78%

Build:
DEFAULT BRANCH: master
Ran 29 Apr 2017 06:13PM UTC
Jobs 1
Files 6
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
13

Pull #1

travis-ci

web-flow
Hawkbit Compatible Plates Integration/Wrapper Class

Usage:

```
Usage Example:

// ...
$app->getContainer()->share('view', function () use ($app) {
$view = new Plates([
'directory' => __DIR__ . '/../tpl/',
'assetPath' => __DIR__ . '/../assets',
'fileExtension' => 'tpl',
'filenameCaching' => TRUE
], $app->getResponse()); // optionally add response object

$view->registerFunction('test', function ($string) {
return strtoupper($string);
});

return $view;
});

$route->get('/{name}', function(Request $request, Response
$route->get('/{name}', function(Request $request, Response $response,
$args) use ($app) {
return $app->getContainer()->get('view')->render('home', [
'name' => $args['name']
]);

// without passing $response to Plates constructor, render plates into a
variable e.g. $out and uncomment below:
// $response->getBody()->write($out);
// return $response;
});
```
Pull Request #1: Hawkbit Compatible Plates Integration/Wrapper Class

28 of 36 relevant lines covered (77.78%)

2.08 hits per line

Jobs
ID Job ID Ran Files Coverage
2 13.2 29 Apr 2017 06:13PM UTC 0
77.78
Travis Job 13.2
Source Files on build 13
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #13
  • Pull Request #1
  • PR Base - master (#11)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc