Completed
Push — prototype ( aec713...9dff07 )
by Peter
03:00
created
examples/simple/public/config-route-segment-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__ . '/../route-segment/index.php';
1
+<?php require __DIR__.'/../route-segment/index.php';
Please login to merge, or discard this patch.
examples/simple/public/service-invokable-config/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\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
 /**
15 15
  * Invokable service
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
 $app = Webino::application($config)->bootstrap();
34 34
 
35
-$app->bind(DefaultRoute::class, function (RouteEvent $event) {
35
+$app->bind(DefaultRoute::class, function(RouteEvent $event) {
36 36
     /**
37 37
      * Obtaining invokable
38 38
      * service instance.
Please login to merge, or discard this patch.
examples/simple/public/logger-message-class/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 WebinoLogLib\Message\AbstractWarningMessage;
14 14
 use Zend\Stdlib\Parameters;
15 15
 
16
-require __DIR__ . '/../../vendor/autoload.php';
16
+require __DIR__.'/../../vendor/autoload.php';
17 17
 
18 18
 /**
19 19
  * Custom log message
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
  */
49 49
 $app->log(MyLogMessage::class, ['paramOne', 'paramTwo']);
50 50
 
51
-$app->bind(DefaultRoute::class, function (RouteEvent $event) {
51
+$app->bind(DefaultRoute::class, function(RouteEvent $event) {
52 52
     /**
53 53
      * Obtaining log
54 54
      * file contents.
Please login to merge, or discard this patch.
examples/simple/public/config-filesystem/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__ . '/../filesystem-config/index.php';
1
+<?php require __DIR__.'/../filesystem-config/index.php';
Please login to merge, or discard this patch.
examples/simple/public/config-log-filter-priority/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__ . '/../logger-filters-priority/index.php';
1
+<?php require __DIR__.'/../logger-filters-priority/index.php';
Please login to merge, or discard this patch.
examples/simple/public/debugger-panel/index.php 1 patch
Spacing   +4 added lines, -4 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 WebinoHtmlLib\Html;
12 12
 
13
-require __DIR__ . '/../../vendor/autoload.php';
13
+require __DIR__.'/../../vendor/autoload.php';
14 14
 
15 15
 /**
16 16
  * Debugger bar panel
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 
22 22
     protected function getDir()
23 23
     {
24
-        return __DIR__ . '/' . $this::RESOURCES;
24
+        return __DIR__.'/'.$this::RESOURCES;
25 25
     }
26 26
 
27 27
     protected function getLabel()
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
     public function getTab()
38 38
     {
39
-        return $this->createIcon('user', ['top' => '-3px']) . parent::getTab();
39
+        return $this->createIcon('user', ['top' => '-3px']).parent::getTab();
40 40
     }
41 41
 
42 42
     public function getPanel()
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
 $app = Webino::application(null, $debugger)->bootstrap();
55 55
 
56
-$app->bind(DefaultRoute::class, function (RouteEvent $event) {
56
+$app->bind(DefaultRoute::class, function(RouteEvent $event) {
57 57
     /**
58 58
      * Adding the Tracy
59 59
      * debugger bar panel.
Please login to merge, or discard this patch.
examples/simple/public/console-table/index.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -32,19 +32,19 @@
 block discarded – undo
32 32
 
33 33
         $data = [
34 34
             [
35
-              'Walter White',
36
-              'Father',
37
-              'Teacher',
35
+                'Walter White',
36
+                'Father',
37
+                'Teacher',
38 38
             ],
39 39
             [
40
-              'Skyler White',
41
-              'Mother',
42
-              'Accountant',
40
+                'Skyler White',
41
+                'Mother',
42
+                'Accountant',
43 43
             ],
44 44
             [
45
-              'Walter White Jr.',
46
-              'Son',
47
-              'Student',
45
+                'Walter White Jr.',
46
+                'Son',
47
+                'Student',
48 48
             ],
49 49
         ];
50 50
 
Please login to merge, or discard this 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
 {
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 
81 81
 $app = Webino::application($config)->bootstrap();
82 82
 
83
-$app->bind(DefaultRoute::class, function (RouteEvent $event) {
83
+$app->bind(DefaultRoute::class, function(RouteEvent $event) {
84 84
     $event->setResponse([
85 85
         new Html\Text('Use Command Line Interface!'),
86 86
         (new ConsolePreview('preview.jpg'))->setHeight(400),
Please login to merge, or discard this patch.
examples/simple/public/events-aware/index.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 use WebinoEventLib\EventsAwareInterface;
14 14
 use WebinoEventLib\EventsAwareTrait;
15 15
 
16
-require __DIR__ . '/../../vendor/autoload.php';
16
+require __DIR__.'/../../vendor/autoload.php';
17 17
 
18 18
 /**
19 19
  * Custom event
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
  * Binding to
91 91
  * custom event.
92 92
  */
93
-$myService->getEvents()->attach('doSomething', function (Event $event) use ($app) {
93
+$myService->getEvents()->attach('doSomething', function(Event $event) use ($app) {
94 94
     $app->set('responseText', new Html\Text($event->getParam('responseText')));
95 95
 });
96 96
 
@@ -98,11 +98,11 @@  discard block
 block discarded – undo
98 98
  * Binding to custom
99 99
  * event object.
100 100
  */
101
-$myService->getEvents()->attach('doSomethingDifferent', function (MyServiceEvent $event) use ($app) {
102
-    $app->get('responseText')->setValue('%s ' . $event->getResponseText());
101
+$myService->getEvents()->attach('doSomethingDifferent', function(MyServiceEvent $event) use ($app) {
102
+    $app->get('responseText')->setValue('%s '.$event->getResponseText());
103 103
 });
104 104
 
105
-$app->bind(DefaultRoute::class, function (RouteEvent $event) use ($myService) {
105
+$app->bind(DefaultRoute::class, function(RouteEvent $event) use ($myService) {
106 106
     /**
107 107
      * Calling custom
108 108
      * service methods.
Please login to merge, or discard this patch.
examples/simple/public/filesystem-delete/index.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,12 +10,12 @@  discard block
 block discarded – undo
10 10
 use WebinoExamplesLib\Html\ScrollBox;
11 11
 use WebinoHtmlLib\Html;
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 17
 // setup
18
-$app->file()->write('my/folder/test.txt', 'Test file contents ' . rand());
18
+$app->file()->write('my/folder/test.txt', 'Test file contents '.rand());
19 19
 $app->file()->write('my/folder/test-2.txt', null);
20 20
 
21 21
 /**
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
  */
25 25
 $app->file()->delete('my/folder/test-2.txt');
26 26
 
27
-$app->bind(DefaultRoute::class, function (RouteEvent $event) {
27
+$app->bind(DefaultRoute::class, function(RouteEvent $event) {
28 28
     /**
29 29
      * Obtaining test file contents
30 30
      * and removing a file at once.
Please login to merge, or discard this patch.