| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | 1 | public static function create(array $config) |
|
| 23 | { |
||
| 24 | 1 | $configFactory = new ConfigFactory; |
|
| 25 | |||
| 26 | 1 | $protocolParameter = new ProtocolParameter( |
|
| 27 | 1 | $configFactory->createFromArray($config), |
|
| 28 | 1 | new HmacSha1Signer, |
|
| 29 | 1 | new NonceGenerator |
|
| 30 | ); |
||
| 31 | |||
| 32 | 1 | $authorizationHeader = new AuthorizationHeader($protocolParameter); |
|
| 33 | |||
| 34 | 1 | $requestFactory = new RequestFactory($authorizationHeader, new UriParser); |
|
| 35 | |||
| 36 | 1 | return new OAuth1(new HttpClient, $requestFactory, new CredentialsFactory); |
|
| 37 | } |
||
| 38 | } |
||
| 39 |