Completed
Push — master ( de31c0...2a2078 )
by Adam
03:08
created
src/IPub/Twitter/ApiCall.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 		OAuth\Consumer $consumer,
58 58
 		OAuth\HttpClient $httpClient,
59 59
 		Configuration $config
60
-	){
60
+	) {
61 61
 		$this->consumer = $consumer;
62 62
 		$this->httpClient = $httpClient;
63 63
 		$this->config = $config;
Please login to merge, or discard this patch.
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Client.php
4
- *
5
- * @copyright	More in license.md
6
- * @license		http://www.ipublikuj.eu
7
- * @author		Adam Kadlec http://www.ipublikuj.eu
8
- * @package		iPublikuj:Twitter!
9
- * @subpackage	common
10
- * @since		5.0
11
- *
12
- * @date		06.03.15
13
- */
3
+	 * Client.php
4
+	 *
5
+	 * @copyright	More in license.md
6
+	 * @license		http://www.ipublikuj.eu
7
+	 * @author		Adam Kadlec http://www.ipublikuj.eu
8
+	 * @package		iPublikuj:Twitter!
9
+	 * @subpackage	common
10
+	 * @since		5.0
11
+	 *
12
+	 * @date		06.03.15
13
+	 */
14 14
 
15 15
 namespace IPub\Twitter;
16 16
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/IPub/Twitter/Paginator.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 	 */
105 105
 	public function limitResults($maxResults)
106 106
 	{
107
-		$this->maxResults = (int)$maxResults;
107
+		$this->maxResults = (int) $maxResults;
108 108
 
109 109
 		return $this;
110 110
 	}
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 	public function valid()
119 119
 	{
120 120
 		return isset($this->resources[$this->pageCursor][$this->itemCursor])
121
-			&& ! $this->loadedMaxResults();
121
+			&& !$this->loadedMaxResults();
122 122
 	}
123 123
 
124 124
 	/**
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
 			// Get all request parameters
169 169
 			$params = $this->responses[$this->pageCursor]->request->getParameters();
170 170
 			// Get last record
171
-			$current = Nette\Utils\ArrayHash::from($this->resources[$this->pageCursor][$this->itemCursor-1]);
171
+			$current = Nette\Utils\ArrayHash::from($this->resources[$this->pageCursor][$this->itemCursor - 1]);
172 172
 			// And set maximum ID
173 173
 			$params['max_id'] = $current->id;
174 174
 			// Get requested path
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -151,7 +151,8 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/IPub/Twitter/Exceptions/InvalidArgumentException.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,4 +14,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/IPub/Twitter/Exceptions/IException.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,4 +14,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/IPub/Twitter/Exceptions/InvalidStateException.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,4 +14,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/IPub/Twitter/Exceptions/FileNotFoundException.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,4 +14,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * FileNotFoundException.php
4
- *
5
- * @copyright	More in license.md
6
- * @license		http://www.ipublikuj.eu
7
- * @author		Adam Kadlec http://www.ipublikuj.eu
8
- * @package		iPublikuj:Twitter!
9
- * @subpackage	Exceptions
10
- * @since		5.0
11
- *
12
- * @date		09.03.15
13
- */
3
+	 * FileNotFoundException.php
4
+	 *
5
+	 * @copyright	More in license.md
6
+	 * @license		http://www.ipublikuj.eu
7
+	 * @author		Adam Kadlec http://www.ipublikuj.eu
8
+	 * @package		iPublikuj:Twitter!
9
+	 * @subpackage	Exceptions
10
+	 * @since		5.0
11
+	 *
12
+	 * @date		09.03.15
13
+	 */
14 14
 
15 15
 namespace IPub\Twitter\Exceptions;
16 16
 
Please login to merge, or discard this patch.
src/IPub/Twitter/Exceptions/IOException.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,4 +14,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/IPub/Twitter/DI/TwitterExtension.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
 	 */
75 75
 	public static function register(Nette\Configurator $config, $extensionName = 'twitter')
76 76
 	{
77
-		$config->onCompile[] = function (Nette\Configurator $config, Nette\DI\Compiler $compiler) use ($extensionName) {
77
+		$config->onCompile[] = function(Nette\Configurator $config, Nette\DI\Compiler $compiler) use ($extensionName) {
78 78
 			$compiler->addExtension($extensionName, new TwitterExtension());
79 79
 		};
80 80
 	}
Please login to merge, or discard this patch.
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * TwitterExtension.php
4
- *
5
- * @copyright	More in license.md
6
- * @license		http://www.ipublikuj.eu
7
- * @author		Adam Kadlec http://www.ipublikuj.eu
8
- * @package		iPublikuj:Twitter!
9
- * @subpackage	DI
10
- * @since		5.0
11
- *
12
- * @date		24.05.13
13
- */
3
+	 * TwitterExtension.php
4
+	 *
5
+	 * @copyright	More in license.md
6
+	 * @license		http://www.ipublikuj.eu
7
+	 * @author		Adam Kadlec http://www.ipublikuj.eu
8
+	 * @package		iPublikuj:Twitter!
9
+	 * @subpackage	DI
10
+	 * @since		5.0
11
+	 *
12
+	 * @date		24.05.13
13
+	 */
14 14
 
15 15
 namespace IPub\Twitter\DI;
16 16
 
Please login to merge, or discard this patch.
src/IPub/Twitter/Profile.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Profile.php
4
- *
5
- * @copyright	More in license.md
6
- * @license		http://www.ipublikuj.eu
7
- * @author		Adam Kadlec http://www.ipublikuj.eu
8
- * @package		iPublikuj:Twitter!
9
- * @subpackage	common
10
- * @since		5.0
11
- *
12
- * @date		04.03.15
13
- */
3
+	 * Profile.php
4
+	 *
5
+	 * @copyright	More in license.md
6
+	 * @license		http://www.ipublikuj.eu
7
+	 * @author		Adam Kadlec http://www.ipublikuj.eu
8
+	 * @package		iPublikuj:Twitter!
9
+	 * @subpackage	common
10
+	 * @since		5.0
11
+	 *
12
+	 * @date		04.03.15
13
+	 */
14 14
 
15 15
 namespace IPub\Twitter;
16 16
 
Please login to merge, or discard this patch.