Completed
Push — develop ( e70242...efddeb )
by Mathias
65:39 queued 53:48
created
module/Core/src/Core/Repository/SnapshotRepository.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
             'entity' => $snapshot
125 125
         ]);
126 126
         $this->dm->getEventManager()
127
-                 ->dispatchEvent(DoctrineMongoODM\Event\RepositoryEventsSubscriber::postCreate, $eventArgs);
127
+                    ->dispatchEvent(DoctrineMongoODM\Event\RepositoryEventsSubscriber::postCreate, $eventArgs);
128 128
 
129 129
         $this->copy($source, $snapshot);
130 130
 
@@ -200,12 +200,12 @@  discard block
 block discarded – undo
200 200
     public function findLatest($sourceId, $isDraft = false)
201 201
     {
202 202
         $entity = $this->createQueryBuilder()
203
-          ->field('snapshotEntity')->equals(new \MongoId($sourceId))
204
-          ->field('snapshotMeta.isDraft')->equals($isDraft)
205
-          ->sort('snapshotMeta.dateCreated.date', 'desc')
206
-          ->limit(1)
207
-          ->getQuery()
208
-          ->getSingleResult()
203
+            ->field('snapshotEntity')->equals(new \MongoId($sourceId))
204
+            ->field('snapshotMeta.isDraft')->equals($isDraft)
205
+            ->sort('snapshotMeta.dateCreated.date', 'desc')
206
+            ->limit(1)
207
+            ->getQuery()
208
+            ->getSingleResult()
209 209
         ;
210 210
         if ($entity) {
211 211
             $this->dm->getEventManager()->dispatchEvent(
Please login to merge, or discard this patch.
module/Core/src/Core/Entity/LocationInterface.php 1 patch
Doc Comments   +11 added lines, -10 removed lines patch added patch discarded remove patch
@@ -20,14 +20,14 @@  discard block
 block discarded – undo
20 20
      * Sets the Postal Code of a location
21 21
      *
22 22
      * @param   string $postalCode
23
-     * @return mixed
23
+     * @return AbstractLocation
24 24
      */
25 25
     public function setPostalCode($postalCode);
26 26
 
27 27
     /**
28 28
      * Gets the Postal Code of a location
29 29
      *
30
-     * @return mixed
30
+     * @return string
31 31
      */
32 32
     public function getPostalCode();
33 33
 
@@ -44,6 +44,7 @@  discard block
 block discarded – undo
44 44
      *
45 45
      * @param GeoJson $coordinates
46 46
      * @internal param $point
47
+     * @return AbstractLocation
47 48
      */
48 49
     public function setCoordinates(GeoJson $coordinates);
49 50
 
@@ -51,7 +52,7 @@  discard block
 block discarded – undo
51 52
      * Sets the city name of a Location
52 53
      *
53 54
      * @param $city
54
-     * @return mixed
55
+     * @return AbstractLocation
55 56
      */
56 57
     public function setCity($city);
57 58
 
@@ -66,14 +67,14 @@  discard block
 block discarded – undo
66 67
      * Sets the country of a location
67 68
      *
68 69
      * @param $country
69
-     * @return mixed
70
+     * @return AbstractLocation
70 71
      */
71 72
     public function setCountry($country);
72 73
 
73 74
     /**
74 75
      * Gets the country of a location
75 76
      *
76
-     * @return mixed
77
+     * @return string
77 78
      */
78 79
     public function getCountry();
79 80
 
@@ -81,7 +82,7 @@  discard block
 block discarded – undo
81 82
      * Sets the region of a location. Eg. "Hessen" is a region in "Germany"
82 83
      *
83 84
      * @param $region
84
-     * @return mixed
85
+     * @return AbstractLocation
85 86
      */
86 87
     public function setRegion($region);
87 88
 
@@ -96,14 +97,14 @@  discard block
 block discarded – undo
96 97
      * Sets the Streetname of a location
97 98
      *
98 99
      * @param $street
99
-     * @return mixed
100
+     * @return AbstractLocation
100 101
      */
101 102
     public function setStreetname($street);
102 103
 
103 104
     /**
104 105
      * Gets the streetname of a location
105 106
      *
106
-     * @return mixed
107
+     * @return string
107 108
      */
108 109
     public function getStreetname();
109 110
 
@@ -111,14 +112,14 @@  discard block
 block discarded – undo
111 112
      * Sets the Streetnumber of a location
112 113
      *
113 114
      * @param $number
114
-     * @return mixed
115
+     * @return AbstractLocation
115 116
      */
116 117
     public function setStreetnumber($number);
117 118
 
118 119
     /**
119 120
      * Gets the streetnumber of a location
120 121
      *
121
-     * @return mixeed
122
+     * @return string
122 123
      */
123 124
     public function getStreetnumber();
124 125
 }
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Entity/Decorator/JsonLdProvider.php 3 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -82,6 +82,7 @@
 block discarded – undo
82 82
      * Generates a location array
83 83
      *
84 84
      * @param Collection $locations,
85
+     * @param string $locations
85 86
      *
86 87
      * @return array
87 88
      */
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 
52 52
         $dateStart = $this->job->getDatePublishStart();
53 53
         $dateStart = $dateStart ? $dateStart->format('Y-m-d H:i:s') : null;
54
-	    $dateEnd = $this->job->getDatePublishEnd();
54
+        $dateEnd = $this->job->getDatePublishEnd();
55 55
         $dateEnd = $dateEnd ? $dateEnd->format('Y-m-d H:i:s') : null;
56 56
         if (!$dateEnd){
57 57
             $dateEnd = new \DateTime($dateStart);
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -53,13 +53,13 @@  discard block
 block discarded – undo
53 53
         $dateStart = $dateStart ? $dateStart->format('Y-m-d H:i:s') : null;
54 54
 	    $dateEnd = $this->job->getDatePublishEnd();
55 55
         $dateEnd = $dateEnd ? $dateEnd->format('Y-m-d H:i:s') : null;
56
-        if (!$dateEnd){
56
+        if (!$dateEnd) {
57 57
             $dateEnd = new \DateTime($dateStart);
58 58
             $dateEnd->add(new \DateInterval("P180D"));
59 59
             $dateEnd = $dateEnd->format('Y-m-d H:i:s');
60 60
         }
61 61
 
62
-        $array=[
62
+        $array = [
63 63
             '@context'=>'http://schema.org/',
64 64
             '@type' => 'JobPosting',
65 65
             'title' => $this->job->getTitle(),
@@ -92,16 +92,16 @@  discard block
 block discarded – undo
92 92
      *
93 93
      * @return array
94 94
      */
95
-    private function getLocations($locations){
96
-        $array=[];
97
-        foreach($locations as $location){ /* @var \Core\Entity\LocationInterface $location */
95
+    private function getLocations($locations) {
96
+        $array = [];
97
+        foreach ($locations as $location) { /* @var \Core\Entity\LocationInterface $location */
98 98
             array_push(
99 99
                 $array,
100 100
                 [
101 101
                     '@type' => 'Place',
102 102
                     'address' => [
103 103
                         '@type' => 'PostalAddress',
104
-                        'streetAddress' => $location->getStreetname() .' '.$location->getStreetnumber(),
104
+                        'streetAddress' => $location->getStreetname().' '.$location->getStreetnumber(),
105 105
                         'postalCode' => $location->getPostalCode(),
106 106
                         'addressLocality' => $location->getCity(),
107 107
                         'addressCountry' => $location->getCountry(),
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      */
122 122
     private function getDescription(TemplateValuesInterface $values) {
123 123
 
124
-        $description=sprintf(
124
+        $description = sprintf(
125 125
             "<p>%s</p>".
126 126
             "<h1>%s</h1>".
127 127
             "<h3>Requirements</h3><p>%s</p>".
Please login to merge, or discard this patch.
module/Install/src/Controller/Plugin/UserCreator.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,9 +80,9 @@
 block discarded – undo
80 80
         $repo->setEntityPrototype(new User());
81 81
 
82 82
         $result = true;
83
-        try{
83
+        try {
84 84
             $repo->store($user);
85
-        }catch (\Exception $e){
85
+        } catch (\Exception $e) {
86 86
             throw $e;
87 87
         }
88 88
         return $result;
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
         $result = true;
83 83
         try{
84 84
             $repo->store($user);
85
-        }catch (\Exception $e){
85
+        } catch (\Exception $e){
86 86
             throw $e;
87 87
         }
88 88
         return $result;
Please login to merge, or discard this patch.
module/Install/src/Factory/Controller/Plugin/UserCreatorFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
 
51 51
         $config = $container->get('doctrine.documentmanager.odm_default')->getConfiguration();
52 52
         $config->setDefaultDB($database);
53
-        $dm = $this->createDocumentManager($options['connection'],$config);
53
+        $dm = $this->createDocumentManager($options['connection'], $config);
54 54
 
55
-        $plugin = new UserCreator($credentialFilter,$dm);
55
+        $plugin = new UserCreator($credentialFilter, $dm);
56 56
         return $plugin;
57 57
     }
58 58
 
@@ -64,10 +64,10 @@  discard block
 block discarded – undo
64 64
      * @return DocumentManager
65 65
      * @codeCoverageIgnore
66 66
      */
67
-    public function createDocumentManager($connection,$config)
67
+    public function createDocumentManager($connection, $config)
68 68
     {
69 69
         $dbConn = new Connection($connection);
70
-        $dm = DocumentManager::create($dbConn,$config);
70
+        $dm = DocumentManager::create($dbConn, $config);
71 71
         return $dm;
72 72
     }
73 73
 }
Please login to merge, or discard this patch.
module/Install/src/Validator/MongoDbConnection.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
             $this->error(self::NO_CONNECTION);
82 82
 
83 83
             return false;
84
-        }catch (\Exception $e){
84
+        } catch (\Exception $e) {
85 85
             $this->databaseError = $e->getMessage();
86 86
             $this->error(self::NO_CONNECTION);
87 87
             return false;
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
             $this->error(self::NO_CONNECTION);
82 82
 
83 83
             return false;
84
-        }catch (\Exception $e){
84
+        } catch (\Exception $e){
85 85
             $this->databaseError = $e->getMessage();
86 86
             $this->error(self::NO_CONNECTION);
87 87
             return false;
Please login to merge, or discard this patch.
module/Core/src/Core/Options/MailServiceOptions.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         return $this;
100 100
     }
101 101
 
102
-    public function getUsername(){
102
+    public function getUsername() {
103 103
         return $this->connectionConfig['username'];
104 104
     }
105 105
 
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         return $this;
111 111
     }
112 112
 
113
-    public function getPassword(){
113
+    public function getPassword() {
114 114
         return $this->connectionConfig['password'];
115 115
     }
116 116
 
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
         return $this;
122 122
     }
123 123
 
124
-    public function getSsl(){
124
+    public function getSsl() {
125 125
         return $this->connectionConfig['ssl'];
126 126
     }
127 127
 
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
         return $this;
131 131
     }
132 132
 
133
-    public function getTransportClass(){
133
+    public function getTransportClass() {
134 134
         return $this->transportClass;
135 135
     }
136 136
 
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
      */
140 140
     public function getPath()
141 141
     {
142
-        if(is_null($this->path) || false == $this->path){
142
+        if (is_null($this->path) || false == $this->path) {
143 143
             $this->setPath(sys_get_temp_dir().'/yawik/mails');
144 144
         }
145 145
         return $this->path;
@@ -151,9 +151,9 @@  discard block
 block discarded – undo
151 151
      */
152 152
     public function setPath($path)
153 153
     {
154
-        if(!is_dir($path) && false !== $path){
155
-            mkdir($path,0777,true);
156
-            chmod($path,0777);
154
+        if (!is_dir($path) && false !== $path) {
155
+            mkdir($path, 0777, true);
156
+            chmod($path, 0777);
157 157
         }
158 158
         $this->path = $path;
159 159
         return $this;
Please login to merge, or discard this patch.
module/Core/src/Core/Service/EntityEraser/AbstractDependenciesListener.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -77,6 +77,9 @@
 block discarded – undo
77 77
         return $this->dependencyCheck($event);
78 78
     }
79 79
 
80
+    /**
81
+     * @param \Core\Entity\EntityInterface $entity
82
+     */
80 83
     private function checkEntityClasses($entity)
81 84
     {
82 85
         if (empty($this->entityClasses)) { return true; }
Please login to merge, or discard this patch.
module/Core/src/Core/Controller/Plugin/EntityEraser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
 
112 112
         $event = $this->loadEntitiesEvents->getEvent($entity, $this, $params);
113 113
         $responses = $this->loadEntitiesEvents->triggerEventUntil(
114
-            function ($response) { return (is_array($response) || $response instanceOf \Traversable) && count($response); },
114
+            function($response) { return (is_array($response) || $response instanceOf \Traversable) && count($response); },
115 115
             $event
116 116
         );
117 117
 
Please login to merge, or discard this patch.