-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #80 from rokka-io/cs
apply cs fixes
- Loading branch information
Showing
34 changed files
with
137 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,9 +50,9 @@ public function __construct($stack, $hash = null, $format = null, $filename = nu | |
/** | ||
* Creates a UriComponent object from an array with 'stack', 'hash', 'format', 'filename' and 'stack' as keys. | ||
* | ||
* @since 1.2.0 | ||
* @param array{stack: string, hash?: ?string, format?: ?string, filename?: ?string} $config | ||
* | ||
* @param mixed $config | ||
* @since 1.2.0 | ||
*/ | ||
public static function createFromArray($config): self | ||
Check failure on line 57 in src/Core/UriComponents.php GitHub Actions / build
Check failure on line 57 in src/Core/UriComponents.php GitHub Actions / build
Check failure on line 57 in src/Core/UriComponents.php GitHub Actions / build
|
||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ class Image extends Base | |
/** | ||
* @var string|null the render base url like foo-org.rokka.io | ||
*/ | ||
private $renderBaseUrl = null; | ||
private $renderBaseUrl; | ||
|
||
/** | ||
* Constructor. | ||
|
@@ -470,13 +470,13 @@ public function createStack( | |
* | ||
* Example: | ||
* ```language-php | ||
$stack = new Stack(null, 'teststack'); | ||
$stack->addStackOperation(new StackOperation('resize', ['width' => 200, 'height' => 200])); | ||
$stack->addStackOperation(new StackOperation('rotate', ['angle' => 45])); | ||
$stack->setStackOptions(['jpg.quality' => 80]); | ||
$requestConfig = ['overwrite' => true]; | ||
$stack = $client->saveStack($stack, $requestConfig); | ||
echo 'Created stack ' . $stack->getName() . PHP_EOL; | ||
* $stack = new Stack(null, 'teststack'); | ||
* $stack->addStackOperation(new StackOperation('resize', ['width' => 200, 'height' => 200])); | ||
* $stack->addStackOperation(new StackOperation('rotate', ['angle' => 45])); | ||
* $stack->setStackOptions(['jpg.quality' => 80]); | ||
* $requestConfig = ['overwrite' => true]; | ||
* $stack = $client->saveStack($stack, $requestConfig); | ||
* echo 'Created stack ' . $stack->getName() . PHP_EOL; | ||
* ``` | ||
* The only requestConfig option currently can be | ||
* ['overwrite' => true|false] (false is the default) | ||
|
@@ -691,12 +691,12 @@ public function setProtected($protected, $hash, $organization = '', $options = [ | |
$callOptions['json'] = $protected; | ||
|
||
$path = implode('/', [ | ||
self::SOURCEIMAGE_RESOURCE, | ||
$this->getOrganizationName($organization), | ||
$hash, | ||
'options', | ||
'protected', | ||
]); | ||
self::SOURCEIMAGE_RESOURCE, | ||
$this->getOrganizationName($organization), | ||
$hash, | ||
'options', | ||
'protected', | ||
]); | ||
|
||
// delete the previous, if we're not on the first one anymore, or if we want to delete it. | ||
if (isset($options['deletePrevious']) && $options['deletePrevious']) { | ||
|
@@ -766,10 +766,10 @@ public function addAutolabels($hash, $organization = null): SourceImage | |
} | ||
|
||
/** | ||
* @param string[] $languages | ||
* @param string $hash | ||
* @param string|null $organization | ||
* @param array $options, for example ['force' => true] to recreate | ||
* @param string[] $languages | ||
* @param string $hash | ||
* @param string|null $organization | ||
* @param array{force?: bool} $options if force is true, the description is generated again even if it already exists | ||
*/ | ||
public function addAutodescription($languages, $hash, $organization = null, array $options = []): SourceImage | ||
Check failure on line 774 in src/Image.php GitHub Actions / build
Check failure on line 774 in src/Image.php GitHub Actions / build
|
||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.