@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright 2015 Dirk Groenen |
|
4 | - * |
|
5 | - * (c) Dirk Groenen <[email protected]> |
|
6 | - * |
|
7 | - * For the full copyright and license information, please view the LICENSE |
|
8 | - * file that was distributed with this source code. |
|
9 | - */ |
|
3 | + * Copyright 2015 Dirk Groenen |
|
4 | + * |
|
5 | + * (c) Dirk Groenen <[email protected]> |
|
6 | + * |
|
7 | + * For the full copyright and license information, please view the LICENSE |
|
8 | + * file that was distributed with this source code. |
|
9 | + */ |
|
10 | 10 | |
11 | 11 | namespace DirkGroenen\Pinterest\Endpoints; |
12 | 12 |
@@ -11,7 +11,6 @@ |
||
11 | 11 | namespace DirkGroenen\Pinterest\Transport; |
12 | 12 | |
13 | 13 | use DirkGroenen\Pinterest\Utils\CurlBuilder; |
14 | -use DirkGroenen\Pinterest\Exceptions\PinterestException; |
|
15 | 14 | |
16 | 15 | class Response { |
17 | 16 |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright 2015 Dirk Groenen |
|
4 | - * |
|
5 | - * (c) Dirk Groenen <[email protected]> |
|
6 | - * |
|
7 | - * For the full copyright and license information, please view the LICENSE |
|
8 | - * file that was distributed with this source code. |
|
9 | - */ |
|
3 | + * Copyright 2015 Dirk Groenen |
|
4 | + * |
|
5 | + * (c) Dirk Groenen <[email protected]> |
|
6 | + * |
|
7 | + * For the full copyright and license information, please view the LICENSE |
|
8 | + * file that was distributed with this source code. |
|
9 | + */ |
|
10 | 10 | |
11 | 11 | namespace DirkGroenen\Pinterest\Endpoints; |
12 | 12 |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright 2015 Dirk Groenen |
|
4 | - * |
|
5 | - * (c) Dirk Groenen <[email protected]> |
|
6 | - * |
|
7 | - * For the full copyright and license information, please view the LICENSE |
|
8 | - * file that was distributed with this source code. |
|
9 | - */ |
|
3 | + * Copyright 2015 Dirk Groenen |
|
4 | + * |
|
5 | + * (c) Dirk Groenen <[email protected]> |
|
6 | + * |
|
7 | + * For the full copyright and license information, please view the LICENSE |
|
8 | + * file that was distributed with this source code. |
|
9 | + */ |
|
10 | 10 | |
11 | 11 | namespace DirkGroenen\Pinterest\Endpoints; |
12 | 12 |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright 2015 Dirk Groenen |
|
4 | - * |
|
5 | - * (c) Dirk Groenen <[email protected]> |
|
6 | - * |
|
7 | - * For the full copyright and license information, please view the LICENSE |
|
8 | - * file that was distributed with this source code. |
|
9 | - */ |
|
3 | + * Copyright 2015 Dirk Groenen |
|
4 | + * |
|
5 | + * (c) Dirk Groenen <[email protected]> |
|
6 | + * |
|
7 | + * For the full copyright and license information, please view the LICENSE |
|
8 | + * file that was distributed with this source code. |
|
9 | + */ |
|
10 | 10 | |
11 | 11 | namespace DirkGroenen\Pinterest\Endpoints; |
12 | 12 |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright 2015 Dirk Groenen |
|
4 | - * |
|
5 | - * (c) Dirk Groenen <[email protected]> |
|
6 | - * |
|
7 | - * For the full copyright and license information, please view the LICENSE |
|
8 | - * file that was distributed with this source code. |
|
9 | - */ |
|
3 | + * Copyright 2015 Dirk Groenen |
|
4 | + * |
|
5 | + * (c) Dirk Groenen <[email protected]> |
|
6 | + * |
|
7 | + * For the full copyright and license information, please view the LICENSE |
|
8 | + * file that was distributed with this source code. |
|
9 | + */ |
|
10 | 10 | |
11 | 11 | namespace DirkGroenen\Pinterest\Endpoints; |
12 | 12 |
@@ -15,11 +15,9 @@ |
||
15 | 15 | $pinterest->auth->setOAuthToken($token->access_token); |
16 | 16 | |
17 | 17 | setcookie("access_token", $token->access_token); |
18 | - } |
|
19 | - else if (isset($_GET["access_token"])) { |
|
18 | + } else if (isset($_GET["access_token"])) { |
|
20 | 19 | $pinterest->auth->setOAuthToken($_GET["access_token"]); |
21 | - } |
|
22 | - else if (isset($_COOKIE["access_token"])) { |
|
20 | + } else if (isset($_COOKIE["access_token"])) { |
|
23 | 21 | $pinterest->auth->setOAuthToken($_COOKIE["access_token"]); |
24 | 22 | } |
25 | 23 |
@@ -50,8 +50,7 @@ |
||
50 | 50 | // Fill the model |
51 | 51 | if (is_array($modeldata)) { |
52 | 52 | $this->fill($modeldata); |
53 | - } |
|
54 | - else if ($modeldata instanceof \DirkGroenen\Pinterest\Transport\Response) { |
|
53 | + } else if ($modeldata instanceof \DirkGroenen\Pinterest\Transport\Response) { |
|
55 | 54 | $this->fill($modeldata->data); |
56 | 55 | } |
57 | 56 | } |