@@ -21,6 +21,6 @@ |
||
| 21 | 21 | return DomQuery::cssToXpath(substr($locator, 2)); |
| 22 | 22 | } |
| 23 | 23 | // dot makes it relative |
| 24 | - return '.' . DomQuery::cssToXpath($locator); |
|
| 24 | + return '.'.DomQuery::cssToXpath($locator); |
|
| 25 | 25 | } |
| 26 | 26 | } |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | return $level; |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | - $const = self::class . '::' . strtoupper($level); |
|
| 57 | + $const = self::class.'::'.strtoupper($level); |
|
| 58 | 58 | if (defined($const)) { |
| 59 | 59 | return constant($const); |
| 60 | 60 | } |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | } |
| 9 | 9 | |
| 10 | 10 | $secret = require 'config/secret.php'; |
| 11 | -$filename = 'tmp/common/pipe_file_' . sha1($_GET['token'] . $secret); |
|
| 11 | +$filename = 'tmp/common/pipe_file_'.sha1($_GET['token'].$secret); |
|
| 12 | 12 | |
| 13 | 13 | if (file_exists($filename)) { |
| 14 | 14 | // respond with pipe file contents |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | */ |
| 5 | 5 | |
| 6 | 6 | /** @var \WebinoAppLib\Application\ConfiguredApplicationInterface $app */ |
| 7 | -$app = require __DIR__ . '/app.php'; |
|
| 7 | +$app = require __DIR__.'/app.php'; |
|
| 8 | 8 | if (empty($app)) { |
| 9 | 9 | trigger_error('Expected bootstrapped application', E_USER_ERROR); |
| 10 | 10 | } |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | use WebinoAppLib\Event\AppEvent; |
| 4 | 4 | |
| 5 | 5 | /** @var \WebinoAppLib\Application\BaseApplicationInterface $appCore */ |
| 6 | -$appCore = require __DIR__ . '/core.php'; |
|
| 6 | +$appCore = require __DIR__.'/core.php'; |
|
| 7 | 7 | if (empty($appCore)) { |
| 8 | 8 | trigger_error('Expected application core', E_USER_ERROR); |
| 9 | 9 | } |
@@ -1,1 +1,1 @@ |
||
| 1 | -<?php require __DIR__ . '/../../../vendor/autoload.php'; |
|
| 1 | +<?php require __DIR__.'/../../../vendor/autoload.php'; |
|
@@ -1,1 +1,1 @@ |
||
| 1 | -<?php require __DIR__ . '/../../../vendor/autoload.php'; |
|
| 1 | +<?php require __DIR__.'/../../../vendor/autoload.php'; |
|
@@ -1,1 +1,1 @@ |
||
| 1 | -<?php require __DIR__ . '/../../../vendor/autoload.php'; |
|
| 1 | +<?php require __DIR__.'/../../../vendor/autoload.php'; |
|
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | use WebinoExamplesLib\Html\ConsolePreview; |
| 14 | 14 | use WebinoHtmlLib\Html; |
| 15 | 15 | |
| 16 | -require __DIR__ . '/../../vendor/autoload.php'; |
|
| 16 | +require __DIR__.'/../../vendor/autoload.php'; |
|
| 17 | 17 | |
| 18 | 18 | class MyConsoleCommand extends AbstractConsoleCommand |
| 19 | 19 | { |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | |
| 80 | 80 | $app = Webino::application($config)->bootstrap(); |
| 81 | 81 | |
| 82 | -$app->bind(DefaultRoute::class, function (RouteEvent $event) { |
|
| 82 | +$app->bind(DefaultRoute::class, function(RouteEvent $event) { |
|
| 83 | 83 | $event->setResponseContent([ |
| 84 | 84 | new Html\Text('Use Command Line Interface!'), |
| 85 | 85 | (new ConsolePreview('preview.jpg'))->setHeight(400), |