Completed
Push — master ( 1ee185...424a77 )
by Paweł
02:13
created

Url::post()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 1
1
<?php
2
/**
3
 * Created for IG Monitoring.
4
 * User: jakim <[email protected]>
5
 * Date: 19.02.2018
6
 */
7
8
namespace jakim\ig;
9
10
11
class Url
12
{
13
    public static $baseUrl = 'https://www.instagram.com';
14
15
    public static function account($username)
16
    {
17
        return static::$baseUrl . str_replace('{username}', $username, '/{username}/');
18
    }
19
20
    public static function post($shortCode)
21
    {
22
        return static::$baseUrl . str_replace('{shortcode}', $shortCode, '/p/{shortcode}/');
23
    }
24
}