Completed
Push — prototype ( aec713...9dff07 )
by Peter
03:00
created
examples/simple/public/service-factory-class/index.php 2 patches
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\Response\Content\SourcePreview;
12 12
 use WebinoAppLib\Router\DefaultRoute;
13 13
 
14
-require __DIR__ . '/../../vendor/autoload.php';
14
+require __DIR__.'/../../vendor/autoload.php';
15 15
 
16 16
 /**
17 17
  * Custom service
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
  */
49 49
 $app->set(MyService::class, MyServiceFactory::class);
50 50
 
51
-$app->bind(DefaultRoute::class, function (RouteEvent $event) {
51
+$app->bind(DefaultRoute::class, function(RouteEvent $event) {
52 52
     /**
53 53
      * Obtaining service
54 54
      * instance.
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
  * Webino Example
5 5
  */
6 6
 
7
-use WebinoAppLib\Application\CoreConfig;
8 7
 use WebinoAppLib\Event\RouteEvent;
9 8
 use WebinoAppLib\Factory\AbstractFactory;
10 9
 use WebinoAppLib\Feature\Service;
Please login to merge, or discard this patch.
examples/simple/public/index.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 use WebinoViewLib\Feature\CommonView;
17 17
 use WebinoViewLib\Feature\NodeView;
18 18
 
19
-require __DIR__ . '/../vendor/autoload.php';
19
+require __DIR__.'/../vendor/autoload.php';
20 20
 
21 21
 /**
22 22
  * Custom view component
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
             list($section) = explode('-', $info['filename'], 2);
51 51
             $label = ucwords(str_replace('-', ' ', $info['filename']));
52
-            $examples[ucfirst($section)][] = new Html\Url($info['filename'], $label) . new Html\LineBreak;
52
+            $examples[ucfirst($section)][] = new Html\Url($info['filename'], $label).new Html\LineBreak;
53 53
         }
54 54
 
55 55
         $this->api = '';
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 
101 101
 $app = Webino::application($config, Webino::debugger(Webino::debuggerOptions()->setBar()))->bootstrap();
102 102
 
103
-$app->bind(DefaultRoute::class, function (RouteEvent $event) {
103
+$app->bind(DefaultRoute::class, function(RouteEvent $event) {
104 104
     $event->setResponse(new ViewResponse);
105 105
 });
106 106
 
Please login to merge, or discard this patch.
examples/simple/public/config-service-invokable/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__ . '/../service-invokable-config/index.php';
1
+<?php require __DIR__.'/../service-invokable-config/index.php';
Please login to merge, or discard this patch.
examples/simple/public/config-debugger-info/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__ . '/../debugger-info-config/index.php';
1
+<?php require __DIR__.'/../debugger-info-config/index.php';
Please login to merge, or discard this patch.
examples/simple/public/config-route/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-config/index.php';
1
+<?php require __DIR__.'/../route-config/index.php';
Please login to merge, or discard this patch.
examples/simple/public/filesystem-aware/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 WebinoFilesystemLib\FilesystemAwareTrait;
15 15
 use WebinoHtmlLib\Html;
16 16
 
17
-require __DIR__ . '/../../vendor/autoload.php';
17
+require __DIR__.'/../../vendor/autoload.php';
18 18
 
19 19
 /**
20 20
  * Custom filesystem aware
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
     public function doSomething()
27 27
     {
28
-        $this->getFilesystem()->put('my/folder/test.txt', 'Test file contents ' . rand());
28
+        $this->getFilesystem()->put('my/folder/test.txt', 'Test file contents '.rand());
29 29
     }
30 30
 }
31 31
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
 $app = Webino::application($config)->bootstrap();
60 60
 
61
-$app->bind(DefaultRoute::class, function (RouteEvent $event) {
61
+$app->bind(DefaultRoute::class, function(RouteEvent $event) {
62 62
     /** @var MyService $myService */
63 63
     $myService = $event->getApp()->get(MyService::class);
64 64
 
Please login to merge, or discard this patch.
examples/simple/public/debugger-info/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,13 +9,13 @@
 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
 $debugger = Webino::debugger(Webino::debuggerOptions()->setDevMode()->setBar());
15 15
 
16 16
 $app = Webino::application(null, $debugger)->bootstrap();
17 17
 
18
-$app->bind(DefaultRoute::class, function (RouteEvent $event) {
18
+$app->bind(DefaultRoute::class, function(RouteEvent $event) {
19 19
     /**
20 20
      * Adding the Tracy
21 21
      * debugger bar info.
Please login to merge, or discard this patch.
examples/simple/public/debugger-bar-dump/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
     /**
23 23
      * Debugger bar
24 24
      * variable dump.
Please login to merge, or discard this patch.
examples/simple/public/config-debugger-panel/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__ . '/../debugger-panel-config/index.php';
1
+<?php require __DIR__.'/../debugger-panel-config/index.php';
Please login to merge, or discard this patch.