Completed
Push — prototype ( b19a91...762cc1 )
by Peter
03:52
created
examples/simple/public/view-component-counter/index.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 use WebinoViewLib\Feature\CommonView;
15 15
 use WebinoViewLib\Feature\NodeView;
16 16
 
17
-require __DIR__ . '/../../vendor/autoload.php';
17
+require __DIR__.'/../../vendor/autoload.php';
18 18
 
19 19
 /**
20 20
  * Custom view component
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         $this->onStateChange('plus', 'onPlus');
62 62
 
63 63
         // opr via closure
64
-        $this->onStateChange('minus', function () {
64
+        $this->onStateChange('minus', function() {
65 65
             $this->getState()->count--;
66 66
         });
67 67
     }
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
 $app = Webino::application($config)->bootstrap();
84 84
 
85
-$app->bind(DefaultRoute::class, function (RouteEvent $event) {
85
+$app->bind(DefaultRoute::class, function(RouteEvent $event) {
86 86
     $event->setResponse(new ViewResponse);
87 87
 });
88 88
 
Please login to merge, or discard this patch.
examples/simple/public/config-mail-TODO/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,1 +1,1 @@
 block discarded – undo
1
-<?php require __DIR__ . '/../mail-config/index.php';
1
+<?php require __DIR__.'/../mail-config/index.php';
Please login to merge, or discard this patch.
examples/simple/public/service-factory-config-invokable/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 use WebinoAppLib\Router\DefaultRoute;
12 12
 use Zend\ServiceManager\ServiceLocatorInterface;
13 13
 
14
-require __DIR__ . '/../../vendor/autoload.php';
14
+require __DIR__.'/../../vendor/autoload.php';
15 15
 
16 16
 /**
17 17
  * Custom service
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
 $app = Webino::application($config)->bootstrap();
52 52
 
53
-$app->bind(DefaultRoute::class, function (RouteEvent $event) {
53
+$app->bind(DefaultRoute::class, function(RouteEvent $event) {
54 54
     /**
55 55
      * Obtaining service
56 56
      * instance.
Please login to merge, or discard this patch.
examples/simple/public/response-text/index.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 use WebinoAppLib\Router\DefaultRoute;
11 11
 use WebinoConfigLib\Feature\Route;
12 12
 
13
-require __DIR__ . '/../../vendor/autoload.php';
13
+require __DIR__.'/../../vendor/autoload.php';
14 14
 
15 15
 $config = Webino::config([
16 16
     /**
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 
23 23
 $app = Webino::application($config)->bootstrap();
24 24
 
25
-$app->bindRoute('textTest', function (RouteEvent $event) {
25
+$app->bindRoute('textTest', function(RouteEvent $event) {
26 26
     /**
27 27
      * Responding using
28 28
      * plain text.
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     $event->setResponse(new TextResponse('Hello Webino!'));
31 31
 });
32 32
 
33
-$app->bind(DefaultRoute::class, function (RouteEvent $event) {
33
+$app->bind(DefaultRoute::class, function(RouteEvent $event) {
34 34
     $event->setResponseContent([
35 35
         $event->getApp()->url('textTest')->html('View plain text!'),
36 36
         new SourcePreview(__FILE__),
Please login to merge, or discard this patch.
examples/simple/public/console-input-accept/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
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
 {
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
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->setResponseContent([
48 48
         new Html\Text('Use Command Line Interface!'),
49 49
         new ConsolePreview('preview.gif'),
Please login to merge, or discard this patch.
examples/simple/public/console/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,11 +10,11 @@
 block discarded – undo
10 10
 use WebinoExamplesLib\Html\ConsolePreview;
11 11
 use WebinoHtmlLib\Html\Text;
12 12
 
13
-require __DIR__ . '/../../vendor/autoload.php';
13
+require __DIR__.'/../../vendor/autoload.php';
14 14
 
15 15
 $app = Webino::application()->bootstrap();
16 16
 
17
-$app->bind(DefaultRoute::class, function (RouteEvent $event) {
17
+$app->bind(DefaultRoute::class, function(RouteEvent $event) {
18 18
     $event->setResponseContent([
19 19
         new Text('Use Command Line Interface!'),
20 20
         new ConsolePreview('preview.jpg'),
Please login to merge, or discard this patch.
examples/simple/public/service-invokable-object/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 use WebinoAppLib\Response\Content\SourcePreview;
9 9
 use WebinoAppLib\Router\DefaultRoute;
10 10
 
11
-require __DIR__ . '/../../vendor/autoload.php';
11
+require __DIR__.'/../../vendor/autoload.php';
12 12
 
13 13
 /**
14 14
  * Invokable service
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
  */
30 30
 $app->set(MyService::class, new MyService);
31 31
 
32
-$app->bind(DefaultRoute::class, function (RouteEvent $event) {
32
+$app->bind(DefaultRoute::class, function(RouteEvent $event) {
33 33
     /**
34 34
      * Obtaining invokable
35 35
      * service instance.
Please login to merge, or discard this patch.
examples/simple/public/debugger-panel-config/index.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 use WebinoAppLib\Router\DefaultRoute;
12 12
 use WebinoHtmlLib\Html;
13 13
 
14
-require __DIR__ . '/../../vendor/autoload.php';
14
+require __DIR__.'/../../vendor/autoload.php';
15 15
 
16 16
 /**
17 17
  * Debugger bar panel
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 
23 23
     protected function getDir()
24 24
     {
25
-        return __DIR__ . '/' . $this::RESOURCES;
25
+        return __DIR__.'/'.$this::RESOURCES;
26 26
     }
27 27
 
28 28
     protected function getLabel()
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 
38 38
     public function getTab()
39 39
     {
40
-        return $this->createIcon('user', ['top' => '-3px']) . parent::getTab();
40
+        return $this->createIcon('user', ['top' => '-3px']).parent::getTab();
41 41
     }
42 42
 
43 43
     public function getPanel()
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
 $app = Webino::application($config, $debugger)->bootstrap();
64 64
 
65
-$app->bind(DefaultRoute::class, function (RouteEvent $event) {
65
+$app->bind(DefaultRoute::class, function(RouteEvent $event) {
66 66
     $event->setResponseContent([
67 67
         'Check out right bottom corner > MyPanel!',
68 68
         new SourcePreview(__FILE__),
Please login to merge, or discard this patch.
examples/simple/public/console-checkboxes/index.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
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
 {
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         $input  = $cli->checkboxes('Please send me all of the following:', $options);
35 35
         $result = $input->prompt();
36 36
 
37
-        $cli->br()->out('The answer is: <bold>' . join(', ', $result) . '</bold>')->br();
37
+        $cli->br()->out('The answer is: <bold>'.join(', ', $result).'</bold>')->br();
38 38
     }
39 39
 }
40 40
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
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->setResponseContent([
49 49
         new Html\Text('Use Command Line Interface!'),
50 50
         new ConsolePreview('preview.gif'),
Please login to merge, or discard this patch.