@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | */ |
40 | 40 | public function getConfig() |
41 | 41 | { |
42 | - return ModuleConfigLoader::load(__DIR__ . '/../../config'); |
|
42 | + return ModuleConfigLoader::load(__DIR__.'/../../config'); |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |
@@ -71,10 +71,10 @@ discard block |
||
71 | 71 | // This is an hack due to bad design of Hybridauth |
72 | 72 | // This ensures the class from "addtional-providers" is loaded. |
73 | 73 | array( |
74 | - 'Hybrid_Providers_XING' => $addProvidersDir . '/hybridauth-xing/Providers/XING.php', |
|
74 | + 'Hybrid_Providers_XING' => $addProvidersDir.'/hybridauth-xing/Providers/XING.php', |
|
75 | 75 | ), |
76 | 76 | array( |
77 | - 'Hybrid_Providers_Github' => $addProvidersDir. '/hybridauth-github/Providers/GitHub.php', |
|
77 | + 'Hybrid_Providers_Github' => $addProvidersDir.'/hybridauth-github/Providers/GitHub.php', |
|
78 | 78 | ), |
79 | 79 | ), |
80 | 80 | ); |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | |
91 | 91 | $eventManager->attach( |
92 | 92 | MvcEvent::EVENT_ROUTE, |
93 | - function (MvcEvent $e) use ($services) { |
|
93 | + function(MvcEvent $e) use ($services) { |
|
94 | 94 | /* @var $checkPermissionsListener \Acl\Listener\CheckPermissionsListener */ |
95 | 95 | $checkPermissionsListener = $services->get('Auth/CheckPermissionsListener'); |
96 | 96 | $checkPermissionsListener->onRoute($e); |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | |
101 | 101 | $eventManager->attach( |
102 | 102 | MvcEvent::EVENT_DISPATCH, |
103 | - function (MvcEvent $e) use ($services) { |
|
103 | + function(MvcEvent $e) use ($services) { |
|
104 | 104 | /** @var CheckPermissionsListener $checkPermissionsListener */ |
105 | 105 | $checkPermissionsListener = $services->get('Auth/CheckPermissionsListener'); |
106 | 106 | $checkPermissionsListener->onDispatch($e); |
@@ -39,12 +39,12 @@ |
||
39 | 39 | StatusSelectFactory::class, |
40 | 40 | '@testCreateService' => [ |
41 | 41 | 'mock' => [ |
42 | - '__invoke' => ['@with' => 'getInvokeMockArgs','count' => 1] |
|
42 | + '__invoke' => ['@with' => 'getInvokeMockArgs', 'count' => 1] |
|
43 | 43 | ] |
44 | 44 | ], |
45 | 45 | ]; |
46 | 46 | |
47 | - private $inheritance = [ FactoryInterface::class ]; |
|
47 | + private $inheritance = [FactoryInterface::class]; |
|
48 | 48 | |
49 | 49 | private function getInvokeMockArgs() |
50 | 50 | { |
@@ -44,7 +44,7 @@ |
||
44 | 44 | ], |
45 | 45 | ]; |
46 | 46 | |
47 | - private $inheritance = [ FactoryInterface::class ]; |
|
47 | + private $inheritance = [FactoryInterface::class]; |
|
48 | 48 | |
49 | 49 | private function getInvokeArgs() |
50 | 50 | { |
@@ -35,7 +35,7 @@ |
||
35 | 35 | */ |
36 | 36 | private $target = PaginationQueryFactory::class; |
37 | 37 | |
38 | - private $inheritance = [ FactoryInterface::class ]; |
|
38 | + private $inheritance = [FactoryInterface::class]; |
|
39 | 39 | |
40 | 40 | public function testCreateService() |
41 | 41 | { |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | */ |
78 | 78 | public function testSetGetDate() |
79 | 79 | { |
80 | - $input=new \DateTime("2012-05-06"); |
|
80 | + $input = new \DateTime("2012-05-06"); |
|
81 | 81 | $this->target->setDate($input); |
82 | 82 | $this->assertEquals($this->target->getDate(), $input); |
83 | 83 | } |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | */ |
90 | 90 | public function testSetGetStatus($status) |
91 | 91 | { |
92 | - $input=new Status($status); |
|
92 | + $input = new Status($status); |
|
93 | 93 | $this->target->setStatus($input); |
94 | 94 | $this->assertEquals($this->target->getStatus(), $input); |
95 | 95 | } |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | */ |
111 | 111 | public function testSetGetMessage() |
112 | 112 | { |
113 | - $input="this is my message"; |
|
113 | + $input = "this is my message"; |
|
114 | 114 | $this->target->setMessage($input); |
115 | 115 | $this->assertEquals($this->target->getMessage(), $input); |
116 | 116 | } |
@@ -46,7 +46,7 @@ |
||
46 | 46 | |
47 | 47 | public function testSetGetRating() |
48 | 48 | { |
49 | - $input="1"; |
|
49 | + $input = "1"; |
|
50 | 50 | $this->target->setRating($input); |
51 | 51 | $this->assertEquals($this->target->getRating(), $input); |
52 | 52 | } |
@@ -105,7 +105,7 @@ |
||
105 | 105 | } |
106 | 106 | } |
107 | 107 | |
108 | - $assertMethod = 'assert' . ($expectedResult ? 'True' : 'False'); |
|
108 | + $assertMethod = 'assert'.($expectedResult ? 'True' : 'False'); |
|
109 | 109 | |
110 | 110 | |
111 | 111 | $this->$assertMethod($this->target->isValid($value)); |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | */ |
55 | 55 | public function testSetGetSubject() |
56 | 56 | { |
57 | - $input="subject of the mail"; |
|
57 | + $input = "subject of the mail"; |
|
58 | 58 | $this->target->setSubject($input); |
59 | 59 | $this->assertEquals($this->target->getSubject(), $input); |
60 | 60 | } |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | */ |
66 | 66 | public function testSetGetMailText() |
67 | 67 | { |
68 | - $input="this is the mailtext"; |
|
68 | + $input = "this is the mailtext"; |
|
69 | 69 | $this->target->setMailText($input); |
70 | 70 | $this->assertEquals($this->target->getMailText(), $input); |
71 | 71 | } |
@@ -46,26 +46,26 @@ |
||
46 | 46 | |
47 | 47 | public function testSetGetExpectedSalary() |
48 | 48 | { |
49 | - $input="1000€"; |
|
49 | + $input = "1000€"; |
|
50 | 50 | $this->target->setExpectedSalary($input); |
51 | 51 | $this->assertEquals($this->target->getExpectedSalary(), $input); |
52 | 52 | } |
53 | 53 | |
54 | 54 | public function testSetGetWillingnessToTravel() |
55 | 55 | { |
56 | - $input="test"; |
|
56 | + $input = "test"; |
|
57 | 57 | $this->target->setWillingnessToTravel($input); |
58 | 58 | $this->assertEquals($this->target->getWillingnessToTravel(), $input); |
59 | 59 | } |
60 | 60 | public function testSetGetEarliestStartingDate() |
61 | 61 | { |
62 | - $input="1000€"; |
|
62 | + $input = "1000€"; |
|
63 | 63 | $this->target->setEarliestStartingDate($input); |
64 | 64 | $this->assertEquals($this->target->getEarliestStartingDate(), $input); |
65 | 65 | } |
66 | 66 | public function testSetGetDrivingLicense() |
67 | 67 | { |
68 | - $input="1000€"; |
|
68 | + $input = "1000€"; |
|
69 | 69 | $this->target->setDrivingLicense($input); |
70 | 70 | $this->assertEquals($this->target->getDrivingLicense(), $input); |
71 | 71 | } |