Completed
Push — master ( d1202b...1f3619 )
by Michael
12:36 queued 10:07
created
src/JhFlexiTime/Options/NotificationOptions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
     }
49 49
 
50 50
     /**
51
-     * @return DateTime
51
+     * @return string
52 52
      */
53 53
     public function getRemindDays()
54 54
     {
Please login to merge, or discard this patch.
src/JhFlexiTime/Repository/BookedCreditRepository.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,10 +3,8 @@
 block discarded – undo
3 3
 namespace JhFlexiTime\Repository;
4 4
 
5 5
 use Doctrine\ORM\QueryBuilder;
6
-use Doctrine\Common\Persistence\ObjectRepository;
7 6
 use Doctrine\ORM\EntityRepository;
8 7
 use ZfcUser\Entity\UserInterface;
9
-use Doctrine\Common\Persistence\ObjectManager;
10 8
 use DoctrineORMModule\Paginator\Adapter\DoctrinePaginator;
11 9
 use Doctrine\ORM\Tools\Pagination\Paginator as ORMPaginator;
12 10
 use Zend\Paginator\Paginator;
Please login to merge, or discard this patch.
src/JhFlexiTime/Repository/Factory/BookedCreditRepositoryFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 {
15 15
     /**
16 16
      * @param \Zend\ServiceManager\ServiceLocatorInterface $serviceLocator
17
-     * @return \JhFlexiTime\Repository\BalanceRepository
17
+     * @return BookedCreditRepository
18 18
      */
19 19
     public function createService(ServiceLocatorInterface $serviceLocator)
20 20
     {
Please login to merge, or discard this patch.
src/JhFlexiTime/Service/BookingService.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -169,9 +169,9 @@
 block discarded – undo
169 169
 
170 170
     /**
171 171
      * @param $userId
172
-     * @param DateTime|string $date
172
+     * @param DateTime $date
173 173
      * @throws \Exception
174
-     * @return object
174
+     * @return Booking
175 175
      */
176 176
     public function getBookingByUserAndDate($userId, DateTime $date)
177 177
     {
Please login to merge, or discard this patch.
src/JhFlexiTime/Service/Factory/CappedCreditServiceFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 {
17 17
     /**
18 18
      * @param ServiceLocatorInterface $serviceLocator
19
-     * @return BookingService
19
+     * @return CappedCreditService
20 20
      */
21 21
     public function createService(ServiceLocatorInterface $serviceLocator)
22 22
     {
Please login to merge, or discard this patch.
src/JhFlexiTime/Service/Factory/MissingBookingReminderServiceFactory.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 {
18 18
     /**
19 19
      * @param ServiceLocatorInterface $serviceLocator
20
-     * @return RunningBalanceService
20
+     * @return MissingBookingReminderService
21 21
      */
22 22
     public function createService(ServiceLocatorInterface $serviceLocator)
23 23
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use JhFlexiTime\Service\RunningBalanceService;
7 7
 use Zend\ServiceManager\FactoryInterface;
8 8
 use Zend\ServiceManager\ServiceLocatorInterface;
9
-use JhFlexiTime\DateTime\DateTime;
10 9
 
11 10
 /**
12 11
  * Class MissingBookingReminderServiceFactory
Please login to merge, or discard this patch.
src/JhFlexiTime/Validator/UniqueObject.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     /**
18 18
      * Returns false if there is another object with the same field values but other identifiers.
19 19
      *
20
-     * @param  mixed $value
20
+     * @param  string $value
21 21
      * @param  array $context
22 22
      * @return boolean
23 23
      */
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
 
5 5
 use Doctrine\Common\Persistence\Mapping\MappingException;
6 6
 use DoctrineModule\Validator\UniqueObject as DoctrineUniqueObject;
7
-use ZfcUser\Entity\UserInterface;
8 7
 
9 8
 /**
10 9
  * Class UniqueObject
Please login to merge, or discard this patch.
test/JhFlexiTimeTest/Controller/BookingControllerTest.php 2 patches
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -89,6 +89,9 @@  discard block
 block discarded – undo
89 89
         $this->user = $ZfcUserMock;
90 90
     }
91 91
 
92
+    /**
93
+     * @param string $method
94
+     */
92 95
     public function configureMockBookingService($method, array $params, $return)
93 96
     {
94 97
         $expects = $this->bookingService->expects($this->once())
@@ -98,6 +101,9 @@  discard block
 block discarded – undo
98 101
         call_user_func_array([$expects, "with"], $params);
99 102
     }
100 103
 
104
+    /**
105
+     * @param string $method
106
+     */
101 107
     public function configureMockTimeCalculatorService($method, array $params, $return)
102 108
     {
103 109
         $expects = $this->timeCalculatorService->expects($this->once())
@@ -107,6 +113,9 @@  discard block
 block discarded – undo
107 113
         call_user_func_array([$expects, "with"], $params);
108 114
     }
109 115
 
116
+    /**
117
+     * @return \JhFlexiTime\Service\BookingService
118
+     */
110 119
     public function getBookingService()
111 120
     {
112 121
         $mock = $this->getMockBuilder('JhFlexiTime\Service\BookingService')
@@ -118,6 +127,9 @@  discard block
 block discarded – undo
118 127
         return $mock;
119 128
     }
120 129
 
130
+    /**
131
+     * @return \JhFlexiTime\Service\TimeCalculatorService
132
+     */
121 133
     public function getTimeCalculatorService()
122 134
     {
123 135
         $mock = $this->getMockBuilder('JhFlexiTime\Service\TimeCalculatorService')
@@ -129,6 +141,9 @@  discard block
 block discarded – undo
129 141
         return $mock;
130 142
     }
131 143
 
144
+    /**
145
+     * @return \Zend\Form\FormInterface
146
+     */
132 147
     public function getForm()
133 148
     {
134 149
         return $this->getMock('Zend\Form\FormInterface');
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,13 +3,11 @@
 block discarded – undo
3 3
 namespace JhFlexiTimeTest\Controller;
4 4
 
5 5
 use JhFlexiTime\Controller\BookingRestController;
6
-
7 6
 use JhFlexiTime\DateTime\DateTime;
8 7
 use JhFlexiTime\Entity\UserSettings;
9 8
 use JhFlexiTime\Repository\UserSettingsRepositoryInterface;
10 9
 use JhUser\Entity\User;
11 10
 use Zend\Http\Request;
12
-use Zend\Http\Response;
13 11
 use Zend\Mvc\MvcEvent;
14 12
 use Zend\Mvc\Router\RouteMatch;
15 13
 use Zend\Mvc\Router\Http\TreeRouteStack as HttpRouter;
Please login to merge, or discard this patch.
test/JhFlexiTimeTest/Controller/BookingRestControllerTest.php 2 patches
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -99,6 +99,9 @@  discard block
 block discarded – undo
99 99
         $this->user = $ZfcUserMock;
100 100
     }
101 101
 
102
+    /**
103
+     * @param string $method
104
+     */
102 105
     public function configureMockBookingService($method, array $params, $return)
103 106
     {
104 107
         $expects = $this->bookingService->expects($this->once())
@@ -108,6 +111,9 @@  discard block
 block discarded – undo
108 111
         call_user_func_array([$expects, "with"], $params);
109 112
     }
110 113
 
114
+    /**
115
+     * @param string $method
116
+     */
111 117
     public function configureMockTimeCalculatorService($method, array $params, $return)
112 118
     {
113 119
         $expects = $this->timeCalculatorService->expects($this->once())
@@ -117,6 +123,9 @@  discard block
 block discarded – undo
117 123
         call_user_func_array([$expects, "with"], $params);
118 124
     }
119 125
 
126
+    /**
127
+     * @return \JhFlexiTime\Service\BookingService
128
+     */
120 129
     public function getBookingService()
121 130
     {
122 131
         $mock = $this->getMockBuilder('JhFlexiTime\Service\BookingService')
@@ -128,6 +137,9 @@  discard block
 block discarded – undo
128 137
         return $mock;
129 138
     }
130 139
 
140
+    /**
141
+     * @return \JhFlexiTime\Service\TimeCalculatorService
142
+     */
131 143
     public function getTimeCalculatorService()
132 144
     {
133 145
         $mock = $this->getMockBuilder('JhFlexiTime\Service\TimeCalculatorService')
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,13 +3,11 @@
 block discarded – undo
3 3
 namespace JhFlexiTimeTest\Controller;
4 4
 
5 5
 use JhFlexiTime\Controller\BookingRestController;
6
-
7 6
 use JhFlexiTime\DateTime\DateTime;
8 7
 use JhFlexiTime\Entity\UserSettings;
9 8
 use JhFlexiTime\Repository\UserSettingsRepositoryInterface;
10 9
 use JhUser\Entity\User;
11 10
 use Zend\Http\Request;
12
-use Zend\Http\Response;
13 11
 use Zend\Mvc\MvcEvent;
14 12
 use Zend\Mvc\Router\RouteMatch;
15 13
 use Zend\Mvc\Router\Http\TreeRouteStack as HttpRouter;
Please login to merge, or discard this patch.