@@ -57,7 +57,7 @@ |
||
| 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; |
@@ -81,7 +81,7 @@ |
||
| 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 | |
@@ -106,7 +106,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -72,7 +72,7 @@ discard block |
||
| 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 |
||
| 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( |
@@ -34,7 +34,7 @@ discard block |
||
| 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 |
||
| 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 | } |