Browse Source

Code formatting

main
Cédric Belin 1 month ago
parent
commit
6c2ff1f90d
7 changed files with 10 additions and 10 deletions
  1. +2
    -2
      bin/open_cli
  2. +1
    -1
      doc/installation.md
  3. +1
    -1
      doc/usage/api.md
  4. +1
    -1
      example/main.php
  5. +3
    -3
      src/Cli/Command.php
  6. +1
    -1
      src/open.php
  7. +1
    -1
      test/OpenTest.php

+ 2
- 2
bin/open_cli View File

@@ -1,8 +1,8 @@
#!/usr/bin/env php
<?php declare(strict_types=1);

use Open\Cli\{Command};
use Symfony\Component\Console\{Application};
use Open\Cli\Command;
use Symfony\Component\Console\Application;

// Load the dependencies.
$autoloader = new SplFileInfo(__DIR__."/../../../autoload.php");


+ 1
- 1
doc/installation.md View File

@@ -32,7 +32,7 @@ Now in your [PHP](https://www.php.net) code, you can use:

``` php
<?php
use function Open\{open};
use function Open\open;
```

See the [usage information](usage/api.md).

+ 1
- 1
doc/usage/api.md View File

@@ -8,7 +8,7 @@ This package provides a single function, `Open\open()`, allowing to open a docum

``` php
<?php
use function Open\{open};
use function Open\open;

function main(): void {
// Open a URL in the default browser.


+ 1
- 1
example/main.php View File

@@ -1,5 +1,5 @@
<?php declare(strict_types=1);
use function Open\{open};
use function Open\open;

/** Demonstrates the usage of the `open()` function. */
function main(): void {


+ 3
- 3
src/Cli/Command.php View File

@@ -2,12 +2,12 @@
namespace Open\Cli;

use Symfony\Component\Console\Input\{InputArgument, InputInterface, InputOption};
use Symfony\Component\Console\Output\{OutputInterface};
use function Open\{open};
use Symfony\Component\Console\Output\OutputInterface;
use function Open\open;

/** The console command. */
class Command extends \Symfony\Component\Console\Command\Command {
/** @var string The command name. */
protected static $defaultName = "open";



+ 1
- 1
src/open.php View File

@@ -1,7 +1,7 @@
<?php declare(strict_types=1);
namespace Open;

use Symfony\Component\Process\{Process};
use Symfony\Component\Process\Process;

/**
* Opens the specified target.


+ 1
- 1
test/OpenTest.php View File

@@ -1,7 +1,7 @@
<?php declare(strict_types=1);
namespace Open;

use PHPUnit\Framework\{TestCase};
use PHPUnit\Framework\TestCase;
use function PHPUnit\Framework\{assertThat, isNull};

/** @testdox Open\open */


Loading…
Cancel
Save