@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | use WebinoViewLib\Feature\NodeView; |
14 | 14 | use WebinoHtmlLib\Html; |
15 | 15 | |
16 | -require __DIR__ . '/../../vendor/autoload.php'; |
|
16 | +require __DIR__.'/../../vendor/autoload.php'; |
|
17 | 17 | |
18 | 18 | /** |
19 | 19 | * Example routes |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | |
40 | 40 | $app = Webino::application($config)->bootstrap(); |
41 | 41 | |
42 | -$app->bindRoute(MyRoutes::VIEW_TEST, function (RouteEvent $event) { |
|
42 | +$app->bindRoute(MyRoutes::VIEW_TEST, function(RouteEvent $event) { |
|
43 | 43 | /** |
44 | 44 | * Responding |
45 | 45 | * using view. |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | $event->setResponse($response); |
69 | 69 | }); |
70 | 70 | |
71 | -$app->bind(DefaultRoute::class, function (RouteEvent $event) { |
|
71 | +$app->bind(DefaultRoute::class, function(RouteEvent $event) { |
|
72 | 72 | $event->setResponse([ |
73 | 73 | $event->getApp()->url(MyRoutes::VIEW_TEST)->html('View response!'), |
74 | 74 | new SourcePreview(__FILE__), |
@@ -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; |
@@ -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 |
@@ -46,7 +46,7 @@ |
||
46 | 46 | } |
47 | 47 | |
48 | 48 | $note = 'Webino™ is brought to you thanks to authors and contributors ' |
49 | - . 'of above third-party libraries also.'; |
|
49 | + . 'of above third-party libraries also.'; |
|
50 | 50 | |
51 | 51 | $cli |
52 | 52 | ->border() |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | $credits = $event->getApp()->get(Credits::class); |
42 | 42 | |
43 | 43 | // third-party |
44 | - foreach ($credits->getCredits(__DIR__ . '/../../../vendor') as $item) { |
|
44 | + foreach ($credits->getCredits(__DIR__.'/../../../vendor') as $item) { |
|
45 | 45 | $cli->bold($item[0])->whisper($item[1]); |
46 | 46 | } |
47 | 47 | |
@@ -53,10 +53,10 @@ discard block |
||
53 | 53 | ->comment($note) |
54 | 54 | ->border()->br() |
55 | 55 | ->bold()->inline(Credits::VENDOR_COPYRIGHT) |
56 | - ->out(' (' . Credits::VENDOR_URL . ')') |
|
56 | + ->out(' ('.Credits::VENDOR_URL.')') |
|
57 | 57 | ->bold()->inline('Author: ') |
58 | 58 | ->whisper()->inline(Credits::AUTHOR_NAME) |
59 | - ->out(' (' . Credits::AUTHOR_URL . ')') |
|
59 | + ->out(' ('.Credits::AUTHOR_URL.')') |
|
60 | 60 | ->br(); |
61 | 61 | } |
62 | 62 | } |
@@ -94,7 +94,7 @@ |
||
94 | 94 | } |
95 | 95 | |
96 | 96 | $space = str_repeat(' ', $maxLen + 10 - strlen($command)); |
97 | - $cli->out($space . ' - ' . $title); |
|
97 | + $cli->out($space.' - '.$title); |
|
98 | 98 | } |
99 | 99 | |
100 | 100 | $cli->br(); |
@@ -639,7 +639,7 @@ |
||
639 | 639 | */ |
640 | 640 | public function sp($count = 1) |
641 | 641 | { |
642 | - for ($i=0; $i < $count; $i++) { |
|
642 | + for ($i = 0; $i < $count; $i++) { |
|
643 | 643 | $this->engine->inline(' '); |
644 | 644 | } |
645 | 645 | return $this; |