@@ -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 | { |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | |
47 | 47 | $app = Webino::application($config)->bootstrap(); |
48 | 48 | |
49 | -$app->bind(DefaultRoute::class, function (RouteEvent $event) { |
|
49 | +$app->bind(DefaultRoute::class, function(RouteEvent $event) { |
|
50 | 50 | $event->setResponse([ |
51 | 51 | new Html\Text('Use Command Line Interface!'), |
52 | 52 | new ConsolePreview('preview.gif'), |
@@ -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 | { |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | |
46 | 46 | $app = Webino::application($config)->bootstrap(); |
47 | 47 | |
48 | -$app->bind(DefaultRoute::class, function (RouteEvent $event) { |
|
48 | +$app->bind(DefaultRoute::class, function(RouteEvent $event) { |
|
49 | 49 | $event->setResponse([ |
50 | 50 | new Html\Text('Use Command Line Interface!'), |
51 | 51 | new ConsolePreview('preview.jpg'), |
@@ -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 | { |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | |
39 | 39 | $app = Webino::application($config)->bootstrap(); |
40 | 40 | |
41 | -$app->bind(DefaultRoute::class, function (RouteEvent $event) { |
|
41 | +$app->bind(DefaultRoute::class, function(RouteEvent $event) { |
|
42 | 42 | $event->setResponse([ |
43 | 43 | new Html\Text('Use Command Line Interface!'), |
44 | 44 | (new ConsolePreview('preview.jpg'))->setHeight(400), |
@@ -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 | { |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | */ |
31 | 31 | $event |
32 | 32 | ->getCli() |
33 | - ->addArt(__DIR__ . '/animation') |
|
33 | + ->addArt(__DIR__.'/animation') |
|
34 | 34 | ->animation('bender') |
35 | 35 | ->speed(50) |
36 | 36 | ->run(); |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | |
44 | 44 | $app = Webino::application($config)->bootstrap(); |
45 | 45 | |
46 | -$app->bind(DefaultRoute::class, function (RouteEvent $event) { |
|
46 | +$app->bind(DefaultRoute::class, function(RouteEvent $event) { |
|
47 | 47 | $event->setResponse([ |
48 | 48 | new Html\Text('Use Command Line Interface!'), |
49 | 49 | (new ConsolePreview('preview.gif'))->setHeight(400), |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | use WebinoViewLib\Feature\NodeView; |
17 | 17 | use WebinoViewLib\Feature\ViewTemplateMap; |
18 | 18 | |
19 | -require __DIR__ . '/../../vendor/autoload.php'; |
|
19 | +require __DIR__.'/../../vendor/autoload.php'; |
|
20 | 20 | |
21 | 21 | // TODO |
22 | 22 | |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | */ |
111 | 111 | (new Route('viewTest'))->setLiteral('/view-test'), |
112 | 112 | |
113 | - new ViewTemplateMap(__DIR__ . '/view'), |
|
113 | + new ViewTemplateMap(__DIR__.'/view'), |
|
114 | 114 | |
115 | 115 | new CommonView([ |
116 | 116 | (new NodeView('content')) |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | |
124 | 124 | $app = Webino::application($config)->bootstrap(); |
125 | 125 | |
126 | -$app->bindRoute('viewTest', function (RouteEvent $event) { |
|
126 | +$app->bindRoute('viewTest', function(RouteEvent $event) { |
|
127 | 127 | /** |
128 | 128 | * Responding |
129 | 129 | * using view. |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | $event->setResponse(new ViewResponse); |
132 | 132 | }); |
133 | 133 | |
134 | -$app->bind(DefaultRoute::class, function (RouteEvent $event) { |
|
134 | +$app->bind(DefaultRoute::class, function(RouteEvent $event) { |
|
135 | 135 | $event->setResponse([ |
136 | 136 | $event->getApp()->url('viewTest')->html('View response!'), |
137 | 137 | new SourcePreview(__FILE__), |
@@ -56,7 +56,7 @@ |
||
56 | 56 | public function setDescription($description) |
57 | 57 | { |
58 | 58 | is_array($description) |
59 | - and $description = join(PHP_EOL, $description) ; |
|
59 | + and $description = join(PHP_EOL, $description); |
|
60 | 60 | |
61 | 61 | $this->setDefaults(['description' => $description]); |
62 | 62 | return $this; |
@@ -30,12 +30,12 @@ |
||
30 | 30 | 'position' => 'absolute', |
31 | 31 | 'left' => '1px', |
32 | 32 | 'top' => '1px', |
33 | - 'margin' => 0 , |
|
33 | + 'margin' => 0, |
|
34 | 34 | 'padding' => '8px', |
35 | 35 | 'background' => 'white', |
36 | 36 | ]); |
37 | 37 | |
38 | - parent::__construct($label . new Html\Img($imgSrc)); |
|
38 | + parent::__construct($label.new Html\Img($imgSrc)); |
|
39 | 39 | |
40 | 40 | $this->setStyle([ |
41 | 41 | 'position' => 'relative', |
@@ -46,6 +46,6 @@ |
||
46 | 46 | $node |
47 | 47 | ->setPriority(-110) |
48 | 48 | ->setLocator('head') |
49 | - ->setHtml('{$_innerHtml} <script src="' . $this->src . '"></script>'); |
|
49 | + ->setHtml('{$_innerHtml} <script src="'.$this->src.'"></script>'); |
|
50 | 50 | } |
51 | 51 | } |
@@ -63,12 +63,12 @@ discard block |
||
63 | 63 | |
64 | 64 | $newArgumentsDescription = []; |
65 | 65 | foreach ($argumentsDescription as $key => $value) { |
66 | - $newArgumentsDescription[" <green>$key</green>"] = '- ' . $value; |
|
66 | + $newArgumentsDescription[" <green>$key</green>"] = '- '.$value; |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | $newOptionsDescription = []; |
70 | 70 | foreach ($optionsDescription as $key => $value) { |
71 | - $newOptionsDescription[" <green>--$key</green>"] = '- ' . $value; |
|
71 | + $newOptionsDescription[" <green>--$key</green>"] = '- '.$value; |
|
72 | 72 | } |
73 | 73 | |
74 | 74 | $cli = $event->getCli(); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | $description |
82 | 82 | and $cli |
83 | 83 | ->yellow()->bold('Description:') |
84 | - ->out(' ' . str_replace(PHP_EOL, PHP_EOL . ' ', $description))->br(); |
|
84 | + ->out(' '.str_replace(PHP_EOL, PHP_EOL.' ', $description))->br(); |
|
85 | 85 | |
86 | 86 | $newArgumentsDescription |
87 | 87 | and $cli |