Completed
Push — prototype ( 942ea2...3bfdd7 )
by Peter
04:02
created
examples/simple/public/events-bind-app-dispatch/index.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -5,9 +5,7 @@
 block discarded – undo
5 5
  */
6 6
 
7 7
 use WebinoAppLib\Event\AppEvent;
8
-use WebinoAppLib\Event\RouteEvent;
9 8
 use WebinoAppLib\Response\Content\SourcePreview;
10
-use WebinoAppLib\Router\DefaultRoute;
11 9
 
12 10
 require __DIR__ . '/../../vendor/autoload.php';
13 11
 
Please login to merge, or discard this 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
 $app = Webino::application()->bootstrap();
15 15
 
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  * Binding to
18 18
  * app dispatch.
19 19
  */
20
-$app->bind(AppEvent::DISPATCH, function (AppEvent $event) {
20
+$app->bind(AppEvent::DISPATCH, function(AppEvent $event) {
21 21
     $event->setResponseContent([
22 22
         'Hello Webino!',
23 23
         new SourcePreview(__FILE__),
Please login to merge, or discard this patch.
examples/simple/public/filesystem-config/index.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 use WebinoAppLib\Filesystem\InMemoryFiles;
11 11
 use WebinoAppLib\Response\Content\SourcePreview;
12 12
 use WebinoAppLib\Router\DefaultRoute;
13
-use WebinoConfigLib\Feature\Route;
14 13
 
15 14
 require __DIR__ . '/../../vendor/autoload.php';
16 15
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 use WebinoAppLib\Router\DefaultRoute;
13 13
 use WebinoConfigLib\Feature\Route;
14 14
 
15
-require __DIR__ . '/../../vendor/autoload.php';
15
+require __DIR__.'/../../vendor/autoload.php';
16 16
 
17 17
 $config = Webino::config([
18 18
     /**
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 
25 25
 $app = Webino::application($config)->bootstrap();
26 26
 
27
-$app->bind(DefaultRoute::class, function (RouteEvent $event) {
27
+$app->bind(DefaultRoute::class, function(RouteEvent $event) {
28 28
     /**
29 29
      * Obtaining local
30 30
      * filesystem service.
Please login to merge, or discard this patch.
examples/simple/public/route-bind-invokable-class/index.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 use WebinoAppLib\Event\RouteEvent;
8 8
 use WebinoAppLib\Response\Content\SourcePreview;
9 9
 use WebinoAppLib\Router\DefaultRoute;
10
-use Zend\ModuleManager\Listener\AbstractListener;
11 10
 
12 11
 require __DIR__ . '/../../vendor/autoload.php';
13 12
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 use WebinoAppLib\Router\DefaultRoute;
10 10
 use Zend\ModuleManager\Listener\AbstractListener;
11 11
 
12
-require __DIR__ . '/../../vendor/autoload.php';
12
+require __DIR__.'/../../vendor/autoload.php';
13 13
 
14 14
 /**
15 15
  * Custom invokable listener
Please login to merge, or discard this patch.
examples/simple/public/service-factory-class-invokable/index.php 2 patches
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\Feature\Service;
10 9
 use WebinoAppLib\Response\Content\SourcePreview;
Please login to merge, or discard this 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
@@ -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 a
54 54
      * service instance.
Please login to merge, or discard this patch.
examples/simple/public/service-factory-class/index.php 2 patches
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.
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.
examples/simple/public/service-factory-closure/index.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,9 +4,7 @@
 block discarded – undo
4 4
  * Webino example
5 5
  */
6 6
 
7
-use WebinoAppLib\Application\CoreConfig;
8 7
 use WebinoAppLib\Event\RouteEvent;
9
-use WebinoAppLib\Factory\AbstractFactory;
10 8
 use WebinoAppLib\Feature\Service;
11 9
 use WebinoAppLib\Response\Content\SourcePreview;
12 10
 use WebinoAppLib\Router\DefaultRoute;
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 use WebinoAppLib\Router\DefaultRoute;
13 13
 use Zend\ServiceManager\ServiceLocatorInterface;
14 14
 
15
-require __DIR__ . '/../../vendor/autoload.php';
15
+require __DIR__.'/../../vendor/autoload.php';
16 16
 
17 17
 /**
18 18
  * Custom service
@@ -35,12 +35,12 @@  discard block
 block discarded – undo
35 35
  * Registering service
36 36
  * via closure factory.
37 37
  */
38
-$app->set(MyService::class, function (ServiceLocatorInterface $services) {
38
+$app->set(MyService::class, function(ServiceLocatorInterface $services) {
39 39
     $someDependency = 'example';
40 40
     return new MyService($someDependency);
41 41
 });
42 42
 
43
-$app->bind(DefaultRoute::class, function (RouteEvent $event) {
43
+$app->bind(DefaultRoute::class, function(RouteEvent $event) {
44 44
     /**
45 45
      * Obtaining service
46 46
      * instance.
Please login to merge, or discard this patch.
examples/simple/public/service-factory-config-invokable/index.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
  */
6 6
 
7 7
 use WebinoAppLib\Event\RouteEvent;
8
-use WebinoAppLib\Factory\AbstractFactory;
9 8
 use WebinoAppLib\Feature\Service;
10 9
 use WebinoAppLib\Response\Content\SourcePreview;
11 10
 use WebinoAppLib\Router\DefaultRoute;
Please login to merge, or discard this 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.
library/WebinoAppLib/Application/AbstractBaseApplication.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
      * @triggers bootstrap
36
-     * @param object|Bootstrap $bootstrap
36
+     * @param Bootstrap $bootstrap
37 37
      * @param callable $trigger
38 38
      * @return AbstractConfiguredApplication
39 39
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 
26 26
         return $this->internalBootstrap(
27 27
             $this->getServices()->get($this::BOOTSTRAP),
28
-            function () {
28
+            function() {
29 29
                 $this->emit(AppEvent::BOOTSTRAP, $this);
30 30
             }
31 31
         );
Please login to merge, or discard this patch.
library/WebinoAppLib/Application/Traits/EventsTrait.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,14 +32,14 @@
 block discarded – undo
32 32
     abstract public function get($service);
33 33
 
34 34
     /**
35
-     * @param mixed $service
35
+     * @param string $service
36 36
      * @param null $factory
37 37
      * @return $this
38 38
      */
39 39
     abstract public function set($service, $factory = null);
40 40
 
41 41
     /**
42
-     * @param $service
42
+     * @param string $service
43 43
      * @return bool
44 44
      */
45 45
     abstract public function has($service);
Please login to merge, or discard this patch.