@@ -77,7 +77,7 @@ |
||
77 | 77 | } |
78 | 78 | |
79 | 79 | $_response = $this->getResponse(); |
80 | - $_response->setContent($_response->getContent() . $this->normalizeResponseContent($response)); |
|
80 | + $_response->setContent($_response->getContent().$this->normalizeResponseContent($response)); |
|
81 | 81 | return $this; |
82 | 82 | } |
83 | 83 |
@@ -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; |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | $styleData = []; |
87 | 87 | |
88 | 88 | if (!empty($this->attribs['style'])) { |
89 | - call_user_func(function () use (&$styleData) { |
|
89 | + call_user_func(function() use (&$styleData) { |
|
90 | 90 | foreach (explode(';', $this->attribs['style']) as $pair) { |
91 | 91 | list($name, $value) = explode(':', $pair); |
92 | 92 | $styleData[trim($name)] = trim($value); |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | |
109 | 109 | $stylePairs = []; |
110 | 110 | foreach ($styleData as $name => $value) { |
111 | - $stylePairs[] = $name . ': ' . $value; |
|
111 | + $stylePairs[] = $name.': '.$value; |
|
112 | 112 | } |
113 | 113 | |
114 | 114 | $this->setAttribute('style', join('; ', $stylePairs)); |
@@ -24,7 +24,7 @@ |
||
24 | 24 | */ |
25 | 25 | public function setHeight($height, $units = 'px') |
26 | 26 | { |
27 | - $this->setStyle(['height' => $height . $units]); |
|
27 | + $this->setStyle(['height' => $height.$units]); |
|
28 | 28 | return $this; |
29 | 29 | } |
30 | 30 | } |
@@ -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(new Html\Html($label . new Html\Img($imgSrc))); |
|
38 | + parent::__construct(new Html\Html($label.new Html\Img($imgSrc))); |
|
39 | 39 | |
40 | 40 | $this->setStyle([ |
41 | 41 | 'position' => 'relative', |
@@ -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 | { |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | $app = Webino::application($config)->bootstrap(); |
46 | 46 | |
47 | -$app->bind(DefaultRoute::class, function (RouteEvent $event) { |
|
47 | +$app->bind(DefaultRoute::class, function(RouteEvent $event) { |
|
48 | 48 | $event->setResponse([ |
49 | 49 | new Html\Text('Use Command Line Interface!'), |
50 | 50 | new ConsolePreview('preview.gif'), |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | use WebinoAppLib\Response\Content\SourcePreview; |
11 | 11 | use WebinoAppLib\Router\DefaultRoute; |
12 | 12 | |
13 | -require __DIR__ . '/../../vendor/autoload.php'; |
|
13 | +require __DIR__.'/../../vendor/autoload.php'; |
|
14 | 14 | |
15 | 15 | /** |
16 | 16 | * Example service dependency |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | |
71 | 71 | $app = Webino::application($config)->bootstrap(); |
72 | 72 | |
73 | -$app->bind(DefaultRoute::class, function (RouteEvent $event) { |
|
73 | +$app->bind(DefaultRoute::class, function(RouteEvent $event) { |
|
74 | 74 | /** |
75 | 75 | * Obtaining service |
76 | 76 | * instance. |
@@ -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 | { |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | $app = Webino::application($config)->bootstrap(); |
46 | 46 | |
47 | -$app->bind(DefaultRoute::class, function (RouteEvent $event) { |
|
47 | +$app->bind(DefaultRoute::class, function(RouteEvent $event) { |
|
48 | 48 | $event->setResponse([ |
49 | 49 | new Html\Text('Use Command Line Interface!'), |
50 | 50 | 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 | { |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | $app = Webino::application($config)->bootstrap(); |
46 | 46 | |
47 | -$app->bind(DefaultRoute::class, function (RouteEvent $event) { |
|
47 | +$app->bind(DefaultRoute::class, function(RouteEvent $event) { |
|
48 | 48 | $event->setResponse([ |
49 | 49 | new Html\Text('Use Command Line Interface!'), |
50 | 50 | new ConsolePreview('preview.gif'), |