Completed
Push — prototype ( f82a67...6656fa )
by Peter
09:57
created
library/WebinoEventLib/EventsAwareTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      * $this->eventIdentifier property.
24 24
      *
25 25
      * @param EventManagerInterface $events
26
-     * @return mixed
26
+     * @return EventsAwareTrait
27 27
      */
28 28
     public function setEvents(EventManagerInterface $events)
29 29
     {
Please login to merge, or discard this patch.
library/WebinoViewLib/Component/ComponentStateTrait.php 1 patch
Unused Use Statements   -9 removed lines patch added patch discarded remove patch
@@ -2,19 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace WebinoViewLib\Component;
4 4
 
5
-use WebinoAppLib\Event\AppEvent;
6 5
 use WebinoAppLib\Event\DispatchEvent;
7
-use WebinoAppLib\Feature\HttpListener;
8 6
 use WebinoAppLib\Service\Initializer\RoutingAwareTrait;
9
-use WebinoConfigLib\Feature\FeatureInterface;
10
-use WebinoDomLib\Dom\Config\SpecConfigAggregateInterface;
11 7
 use WebinoDomLib\Dom\NodeInterface;
12 8
 use WebinoDomLib\Event\RenderEvent;
13
-use WebinoEventLib\ListenerAggregateTrait;
14
-use WebinoViewLib\Feature\NodeView;
15
-use WebinoViewLib\Feature\ViewListener;
16
-use Zend\EventManager\ListenerAggregateInterface;
17
-use Zend\Stdlib\CallbackHandler;
18 9
 
19 10
 /**
20 11
  * Class ComponentStateTrait
Please login to merge, or discard this patch.
library/WebinoViewLib/ViewState.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 
34 34
     /**
35 35
      * @param string $string
36
-     * @return mixed
36
+     * @return string
37 37
      */
38 38
     public function format($string)
39 39
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,6 +51,6 @@
 block discarded – undo
51 51
             }
52 52
         }
53 53
 
54
-        return preg_replace($this::VAR_PLACEHOLDER, null, $string);;
54
+        return preg_replace($this::VAR_PLACEHOLDER, null, $string); ;
55 55
     }
56 56
 }
Please login to merge, or discard this patch.
examples/basic-usage/vendor/autoload.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__ . '/../../../vendor/autoload.php';
1
+<?php require __DIR__.'/../../../vendor/autoload.php';
Please login to merge, or discard this patch.
examples/basic-usage/index.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -26,15 +26,15 @@  discard block
 block discarded – undo
26 26
 {
27 27
     public function init()
28 28
     {
29
-        $this->listen(AppEvent::DISPATCH, function (DispatchEvent $event) {
29
+        $this->listen(AppEvent::DISPATCH, function(DispatchEvent $event) {
30 30
             $event->setResponseContent($event->getApp()->file()->read('docs/common.html'));
31 31
         }, AppEvent::BEGIN);
32 32
 
33
-        $this->listen(AppEvent::DISPATCH, function (DispatchEvent $event) {
33
+        $this->listen(AppEvent::DISPATCH, function(DispatchEvent $event) {
34 34
             $event->setResponseContent($event->getApp()->file()->read('docs/footer.html'));
35 35
         }, AppEvent::FINISH);
36 36
 
37
-        $this->listen(DefaultRoute::class, function (RouteEvent $event) {
37
+        $this->listen(DefaultRoute::class, function(RouteEvent $event) {
38 38
             $event->setResponseContent([
39 39
                 '<h1>Webino Application Basic Usage Example</h1>',
40 40
                 $event->getApp()->url('myRoute')->html('My Route Example'),
@@ -43,14 +43,14 @@  discard block
 block discarded – undo
43 43
             ]);
44 44
         });
45 45
 
46
-        $this->listen(RouteEvent::MATCH, function (RouteEvent $event) {
46
+        $this->listen(RouteEvent::MATCH, function(RouteEvent $event) {
47 47
             $routeName = $event->getRouteMatch()->getMatchedRouteName();
48 48
             if (DefaultRoute::class === $routeName) {
49 49
                 $routeName = 'default';
50 50
             }
51 51
 
52 52
             $file = $event->getApp()->file();
53
-            $path = 'docs/' . $routeName . '.html';
53
+            $path = 'docs/'.$routeName.'.html';
54 54
 
55 55
             if ($file->has($path)) {
56 56
                 $docs = $file->read($path);
@@ -58,17 +58,17 @@  discard block
 block discarded – undo
58 58
             }
59 59
         }, RouteEvent::FINISH);
60 60
 
61
-        $this->listen(RouteEvent::MATCH, function (RouteEvent $event) {
61
+        $this->listen(RouteEvent::MATCH, function(RouteEvent $event) {
62 62
             if (DefaultRoute::class !== $event->getRouteMatch()->getMatchedRouteName()) {
63 63
                 $event->setResponseContent($event->getApp()->url(DefaultRoute::class)->html('Go Home'));
64 64
             }
65 65
         }, RouteEvent::FINISH);
66 66
 
67
-        $this->listenRoute('myRoute', function (RouteEvent $event) {
67
+        $this->listenRoute('myRoute', function(RouteEvent $event) {
68 68
             $event->setResponseContent('<h1>My Route Example Content</h1>');
69 69
         });
70 70
 
71
-        $this->listenRoute('myRuntimeRoute', function (RouteEvent $event) {
71
+        $this->listenRoute('myRuntimeRoute', function(RouteEvent $event) {
72 72
             $event->setResponseContent([
73 73
                 '<h1>My Runtime Route Example Content</h1>',
74 74
             ]);
@@ -97,6 +97,6 @@  discard block
 block discarded – undo
97 97
 // runtime route example
98 98
 $app->route('myRuntimeRoute')->setLiteral('/my-runtime-route');
99 99
 
100
-require __DIR__ . '/dispatch.php';
100
+require __DIR__.'/dispatch.php';
101 101
 
102 102
 $app->dispatch();
Please login to merge, or discard this patch.
examples/advanced-usage/config/application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 use WebinoAppLib\Feature as AppFeature;
8 8
 use WebinoConfigLib\Feature as ConfigFeature;
9 9
 
10
-require __DIR__ . '/../src/MyCustomListener.php';
10
+require __DIR__.'/../src/MyCustomListener.php';
11 11
 
12 12
 return new CoreConfig([
13 13
     new ConfigFeature\Log,
Please login to merge, or discard this patch.
examples/advanced-usage/vendor/autoload.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__ . '/../../../vendor/autoload.php';
1
+<?php require __DIR__.'/../../../vendor/autoload.php';
Please login to merge, or discard this patch.
examples/advanced-usage/src/MyCustomListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
      */
11 11
     public function init()
12 12
     {
13
-        $this->listen(\WebinoAppLib\Event\AppEvent::DISPATCH, function () {
13
+        $this->listen(\WebinoAppLib\Event\AppEvent::DISPATCH, function() {
14 14
             echo 'Webino Application Advanced Usage Example';
15 15
         });
16 16
     }
Please login to merge, or discard this patch.
examples/simple/vendor/autoload.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__ . '/../../../vendor/autoload.php';
1
+<?php require __DIR__.'/../../../vendor/autoload.php';
Please login to merge, or discard this patch.