ApplicationGetter::createApplication()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
/**
4
 * Created by PhpStorm.
5
 * User: benedikt
6
 * Date: 1/25/18
7
 * Time: 3:27 PM
8
 */
9
10
namespace Tfboe\FmLib\Tests\Helpers;
11
12
/**
13
 * Trait ApplicationGetter
14
 * @package Tfboe\FmLib\Tests\Helpers
15
 */
16
trait ApplicationGetter
17
{
18
//<editor-fold desc="Public Methods">
19
  /**
20
   * Creates the application.
21
   *
22
   * @return \Laravel\Lumen\Application
23
   */
24
  public function createApplication()
25
  {
26
    /** @noinspection PhpIncludeInspection */ //this trait is only used in projects which include this package
27
    return require __DIR__ . '/../../bootstrap/app.php';
28
  }
29
//</editor-fold desc="Public Methods">
30
}