Completed
Push — master ( 71ad71...95ff40 )
by Adam
02:38
created
src/IPub/Flickr/ApiCall.php 1 patch
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.
src/IPub/Flickr/Configuration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
 			$url->setPath($path);
82 82
 		}
83 83
 
84
-		$url->appendQuery(array_map(function ($param) {
84
+		$url->appendQuery(array_map(function($param) {
85 85
 			return $param instanceof Http\UrlScript ? (string) $param : $param;
86 86
 		}, $params));
87 87
 
Please login to merge, or discard this patch.
src/IPub/Flickr/Paginator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 	 */
107 107
 	public function limitResults($maxResults)
108 108
 	{
109
-		$this->maxResults = (int)$maxResults;
109
+		$this->maxResults = (int) $maxResults;
110 110
 
111 111
 		return $this;
112 112
 	}
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 	public function valid()
121 121
 	{
122 122
 		return isset($this->resources[$this->pageCursor][$this->itemCursor])
123
-			&& ! $this->loadedMaxResults();
123
+			&& !$this->loadedMaxResults();
124 124
 	}
125 125
 
126 126
 	/**
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
 	 */
201 201
 	private function findCollection(array $response)
202 202
 	{
203
-		foreach($response as $item) {
203
+		foreach ($response as $item) {
204 204
 			if (is_array($item)) {
205 205
 				return $item;
206 206
 			}
Please login to merge, or discard this patch.
src/IPub/Flickr/Client.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 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;
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
 
269 269
 		// Complete request params
270 270
 		$params = [
271
-			'oauth_callback' => $callback ?:$this->consumer->getCallbackUrl(),
271
+			'oauth_callback' => $callback ?: $this->consumer->getCallbackUrl(),
272 272
 		];
273 273
 
274 274
 		$response = $this->httpClient->makeRequest(
Please login to merge, or discard this patch.
src/IPub/Flickr/DI/FlickrExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 	protected $defaults = [
35 35
 		'consumerKey' => NULL,
36 36
 		'consumerSecret' => NULL,
37
-		'permission' => 'read',          // read/write/delete
37
+		'permission' => 'read', // read/write/delete
38 38
 		'clearAllWithLogout' => TRUE
39 39
 	];
40 40
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 	 */
78 78
 	public static function register(Nette\Configurator $config, $extensionName = 'flickr')
79 79
 	{
80
-		$config->onCompile[] = function (Nette\Configurator $config, Nette\DI\Compiler $compiler) use ($extensionName) {
80
+		$config->onCompile[] = function(Nette\Configurator $config, Nette\DI\Compiler $compiler) use ($extensionName) {
81 81
 			$compiler->addExtension($extensionName, new FlickrExtension());
82 82
 		};
83 83
 	}
Please login to merge, or discard this patch.