@@ -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 |
@@ -51,8 +51,7 @@ discard block |
||
51 | 51 | // Fill the model |
52 | 52 | if( is_array($modeldata) ){ |
53 | 53 | $this->fill($modeldata); |
54 | - } |
|
55 | - else if( $modeldata instanceof \DirkGroenen\Pinterest\Transport\Response ){ |
|
54 | + } else if( $modeldata instanceof \DirkGroenen\Pinterest\Transport\Response ){ |
|
56 | 55 | $this->fill($modeldata->data); |
57 | 56 | } |
58 | 57 | } |
@@ -82,8 +81,7 @@ discard block |
||
82 | 81 | { |
83 | 82 | if($this->isFillable($key)){ |
84 | 83 | $this->attributes[$key] = $value; |
85 | - } |
|
86 | - else{ |
|
84 | + } else{ |
|
87 | 85 | throw new PinterestException( sprintf("%s is not a fillable attribute.", $key) ); |
88 | 86 | } |
89 | 87 | } |
@@ -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 |
@@ -80,7 +80,7 @@ |
||
80 | 80 | $this->items = $items->data; |
81 | 81 | } |
82 | 82 | else{ |
83 | - throw new PinterestException("$items needs to be an instance of Transport\Response or an array."); |
|
83 | + throw new PinterestException("$items needs to be an instance of Transport\Response or an array."); |
|
84 | 84 | } |
85 | 85 | |
86 | 86 | // Transform the raw collection data to models |
@@ -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 |