Completed
Push — prototype ( 3bfdd7...aec713 )
by Peter
07:47
created
examples/simple/public/filesystem-metadata/index.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,14 +9,14 @@  discard block
 block discarded – undo
9 9
 use WebinoAppLib\Router\DefaultRoute;
10 10
 use WebinoHtmlLib\Html;
11 11
 
12
-require __DIR__ . '/../../vendor/autoload.php';
12
+require __DIR__.'/../../vendor/autoload.php';
13 13
 
14 14
 $app = Webino::application()->bootstrap();
15 15
 
16 16
 // setup
17 17
 $app->file()->write('my/folder/test.txt', 'Test file contents.');
18 18
 
19
-$app->bind(DefaultRoute::class, function (RouteEvent $event) {
19
+$app->bind(DefaultRoute::class, function(RouteEvent $event) {
20 20
     /**
21 21
      * Obtaining file
22 22
      * MIME type.
@@ -36,9 +36,9 @@  discard block
 block discarded – undo
36 36
     $size = $event->getApp()->file()->getSize('my/folder/test.txt');
37 37
 
38 38
     $event->setResponse([
39
-        new Html\Text('MIME type: ' . $mimetype),
40
-        new Html\Text('Timestamp: ' . $timestamp),
41
-        new Html\Text('Size: ' . $size),
39
+        new Html\Text('MIME type: '.$mimetype),
40
+        new Html\Text('Timestamp: '.$timestamp),
41
+        new Html\Text('Size: '.$size),
42 42
         new SourcePreview(__FILE__),
43 43
     ]);
44 44
 });
Please login to merge, or discard this patch.
examples/simple/public/logger-ChromePHP/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 use WebinoAppLib\Router\DefaultRoute;
10 10
 use WebinoConfigLib\Feature\ChromePhpLog;
11 11
 
12
-require __DIR__ . '/../../vendor/autoload.php';
12
+require __DIR__.'/../../vendor/autoload.php';
13 13
 
14 14
 $config = Webino::config([
15 15
     /**
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
  */
28 28
 $app->log()->debug('Test log message!');
29 29
 
30
-$app->bind(DefaultRoute::class, function (RouteEvent $event) {
30
+$app->bind(DefaultRoute::class, function(RouteEvent $event) {
31 31
     $event->setResponse([
32 32
         'Use Chrome Logger extension to view a log!',
33 33
         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
 {
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
 $app = Webino::application($config)->bootstrap();
44 44
 
45
-$app->bind(DefaultRoute::class, function (RouteEvent $event) {
45
+$app->bind(DefaultRoute::class, function(RouteEvent $event) {
46 46
     $event->setResponse([
47 47
         new Html\Text('Use Command Line Interface!'),
48 48
         new ConsolePreview('preview.gif'),
Please login to merge, or discard this patch.
examples/simple/public/debugger/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
  * Adding the Tracy
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 
19 19
 $app = Webino::application(null, $debugger)->bootstrap();
20 20
 
21
-$app->bind(DefaultRoute::class, function (RouteEvent $event) {
21
+$app->bind(DefaultRoute::class, function(RouteEvent $event) {
22 22
     $event->setResponse([
23 23
         'Check out right bottom corner > TRACY!',
24 24
         new SourcePreview(__FILE__),
Please login to merge, or discard this patch.
examples/simple/public/modules-config-TODO/index.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 use WebinoAppLib\Router\DefaultRoute;
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
  * Custom module
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
          * Binding to default route
29 29
          * from the custom module.
30 30
          */
31
-        $app->bind(DefaultRoute::class, function (RouteEvent $event) {
31
+        $app->bind(DefaultRoute::class, function(RouteEvent $event) {
32 32
             $event->setResponse(new Html\Text($event->getApp()->getConfig('myModuleResponseText')));
33 33
         });
34 34
     }
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
          * Binding to default route from
58 58
          * the custom invokable module.
59 59
          */
60
-        $app->bind(DefaultRoute::class, function (RouteEvent $event) {
60
+        $app->bind(DefaultRoute::class, function(RouteEvent $event) {
61 61
             /**
62 62
              * Obtaining custom
63 63
              * module service.
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
          * only when the application configuration
76 76
          * is not loaded from a cache.
77 77
          */
78
-        $app->onConfig(function () {
78
+        $app->onConfig(function() {
79 79
             return [new Service(MyModuleService::class)];
80 80
         });
81 81
     }
Please login to merge, or discard this patch.
examples/simple/public/console-flank/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
 {
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
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'),
Please login to merge, or discard this patch.
examples/simple/public/console-progress/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
 {
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
 $app = Webino::application($config)->bootstrap();
50 50
 
51
-$app->bind(DefaultRoute::class, function (RouteEvent $event) {
51
+$app->bind(DefaultRoute::class, function(RouteEvent $event) {
52 52
     $event->setResponse([
53 53
         new Html\Text('Use Command Line Interface!'),
54 54
         new ConsolePreview('preview.gif'),
Please login to merge, or discard this patch.
examples/simple/public/console-checkboxes-assoc/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
 {
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
 $app = Webino::application($config)->bootstrap();
58 58
 
59
-$app->bind(DefaultRoute::class, function (RouteEvent $event) {
59
+$app->bind(DefaultRoute::class, function(RouteEvent $event) {
60 60
     $event->setResponse([
61 61
         new Html\Text('Use Command Line Interface!'),
62 62
         new ConsolePreview('preview.gif'),
Please login to merge, or discard this patch.
examples/simple/public/events-bind-app-bootstrap-core/index.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 use WebinoAppLib\Response\Content\SourcePreview;
10 10
 use WebinoAppLib\Router\DefaultRoute;
11 11
 
12
-require __DIR__ . '/../../vendor/autoload.php';
12
+require __DIR__.'/../../vendor/autoload.php';
13 13
 
14 14
 $appCore = Webino::application();
15 15
 
@@ -17,13 +17,13 @@  discard block
 block discarded – undo
17 17
  * Binding to
18 18
  * core bootstrap.
19 19
  */
20
-$appCore->bind(AppEvent::BOOTSTRAP, function (AppEvent $event) {
20
+$appCore->bind(AppEvent::BOOTSTRAP, function(AppEvent $event) {
21 21
     $event->getApp()->set('responseText', 'Hello Webino!');
22 22
 });
23 23
 
24 24
 $app = $appCore->bootstrap();
25 25
 
26
-$app->bind(DefaultRoute::class, function (RouteEvent $event) {
26
+$app->bind(DefaultRoute::class, function(RouteEvent $event) {
27 27
     $event->setResponse([
28 28
         $event->getApp()->get('responseText'),
29 29
         new SourcePreview(__FILE__),
Please login to merge, or discard this patch.