@@ -151,7 +151,8 @@ |
||
| 151 | 151 | return; |
| 152 | 152 | } |
| 153 | 153 | |
| 154 | - if (isset($this->resources[$this->pageCursor + 1])) { // already loaded |
|
| 154 | + if (isset($this->resources[$this->pageCursor + 1])) { |
|
| 155 | +// already loaded |
|
| 155 | 156 | $this->itemCursor = 0; |
| 156 | 157 | $this->pageCursor++; |
| 157 | 158 | |
@@ -14,4 +14,6 @@ |
||
| 14 | 14 | |
| 15 | 15 | namespace IPub\Twitter\Exceptions; |
| 16 | 16 | |
| 17 | -class InvalidArgumentException extends \Exception implements IException {} |
|
| 18 | 17 | \ No newline at end of file |
| 18 | +class InvalidArgumentException extends \Exception implements IException |
|
| 19 | +{ |
|
| 20 | +} |
|
| 19 | 21 | \ No newline at end of file |
@@ -14,4 +14,6 @@ |
||
| 14 | 14 | |
| 15 | 15 | namespace IPub\Twitter\Exceptions; |
| 16 | 16 | |
| 17 | -interface IException {} |
|
| 18 | 17 | \ No newline at end of file |
| 18 | +interface IException |
|
| 19 | +{ |
|
| 20 | +} |
|
| 19 | 21 | \ No newline at end of file |
@@ -14,4 +14,6 @@ |
||
| 14 | 14 | |
| 15 | 15 | namespace IPub\Twitter\Exceptions; |
| 16 | 16 | |
| 17 | -class InvalidStateException extends \Exception implements IException {} |
|
| 18 | 17 | \ No newline at end of file |
| 18 | +class InvalidStateException extends \Exception implements IException |
|
| 19 | +{ |
|
| 20 | +} |
|
| 19 | 21 | \ No newline at end of file |
@@ -14,4 +14,6 @@ |
||
| 14 | 14 | |
| 15 | 15 | namespace IPub\Twitter\Exceptions; |
| 16 | 16 | |
| 17 | -class FileNotFoundException extends IOException implements IException {} |
|
| 18 | 17 | \ No newline at end of file |
| 18 | +class FileNotFoundException extends IOException implements IException |
|
| 19 | +{ |
|
| 20 | +} |
|
| 19 | 21 | \ No newline at end of file |
@@ -14,4 +14,6 @@ |
||
| 14 | 14 | |
| 15 | 15 | namespace IPub\Twitter\Exceptions; |
| 16 | 16 | |
| 17 | -class IOException extends \RuntimeException implements IException {} |
|
| 18 | 17 | \ No newline at end of file |
| 18 | +class IOException extends \RuntimeException implements IException |
|
| 19 | +{ |
|
| 20 | +} |
|
| 19 | 21 | \ No newline at end of file |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | Configuration $config, |
| 73 | 73 | SessionStorage $session, |
| 74 | 74 | Nette\Http\IRequest $httpRequest |
| 75 | - ){ |
|
| 75 | + ) { |
|
| 76 | 76 | parent::__construct($consumer, $httpClient, $config); |
| 77 | 77 | |
| 78 | 78 | $this->session = $session; |
@@ -105,7 +105,8 @@ |
||
| 105 | 105 | */ |
| 106 | 106 | public function handleOpen() |
| 107 | 107 | { |
| 108 | - if (!$this->client->getUser()) { // no user |
|
| 108 | + if (!$this->client->getUser()) { |
|
| 109 | +// no user |
|
| 109 | 110 | $this->open(); |
| 110 | 111 | } |
| 111 | 112 | |
@@ -17,11 +17,9 @@ |
||
| 17 | 17 | use Nette; |
| 18 | 18 | use Nette\Application; |
| 19 | 19 | use Nette\Http; |
| 20 | - |
|
| 21 | 20 | use IPub; |
| 22 | 21 | use IPub\Twitter; |
| 23 | 22 | use IPub\Twitter\Exceptions; |
| 24 | - |
|
| 25 | 23 | use IPub\OAuth; |
| 26 | 24 | |
| 27 | 25 | /** |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | Configuration $config, |
| 73 | 73 | SessionStorage $session, |
| 74 | 74 | Nette\Http\IRequest $httpRequest |
| 75 | - ){ |
|
| 75 | + ) { |
|
| 76 | 76 | parent::__construct($consumer, $httpClient, $config); |
| 77 | 77 | |
| 78 | 78 | $this->session = $session; |