Completed
Push — master ( 579211...343140 )
by Craig
06:19
created
src/system/ZAuthModule/Helper/FileIOHelper.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,6 +110,9 @@  discard block
 block discarded – undo
110 110
         $this->passwordApi = $passwordApi;
111 111
     }
112 112
 
113
+    /**
114
+     * @param TranslatorInterface $translator
115
+     */
113 116
     public function setTranslator($translator)
114 117
     {
115 118
         $this->translator = $translator;
@@ -273,8 +276,8 @@  discard block
 block discarded – undo
273 276
     /**
274 277
      * Convert errors to string and add current line.
275 278
      * @param $errors
276
-     * @param $type
277
-     * @param $line
279
+     * @param string $type
280
+     * @param integer $line
278 281
      * @return string
279 282
      */
280 283
     private function locateErrors($errors, $type, $line)
Please login to merge, or discard this patch.
src/system/ZAuthModule/Helper/MailHelper.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -96,6 +96,9 @@
 block discarded – undo
96 96
         return $this->mailerApi->sendMessage($message, $subject, $body, $altBody, $html);
97 97
     }
98 98
 
99
+    /**
100
+     * @param string $notificationType
101
+     */
99 102
     private function generateEmailSubject($notificationType, array $templateArgs = [])
100 103
     {
101 104
         $siteName = $this->variableApi->getSystemVar('sitename');
Please login to merge, or discard this patch.
src/lib/Zikula/Core/AbstractBundle.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     public function getInstallerClass()
55 55
     {
56 56
         $ns = $this->getNamespace();
57
-        $class = $ns.'\\'.substr($ns, strrpos($ns, '\\') + 1, strlen($ns)).'Installer';
57
+        $class = $ns . '\\' . substr($ns, strrpos($ns, '\\') + 1, strlen($ns)) . 'Installer';
58 58
 
59 59
         return $class;
60 60
     }
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      */
77 77
     public function getLocalePath()
78 78
     {
79
-        return $this->getPath().'/Resources/locale';
79
+        return $this->getPath() . '/Resources/locale';
80 80
     }
81 81
 
82 82
     /**
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      */
87 87
     public function getViewsPath()
88 88
     {
89
-        return $this->getPath().'/Resources/views';
89
+        return $this->getPath() . '/Resources/views';
90 90
     }
91 91
 
92 92
     /**
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      */
97 97
     public function getConfigPath()
98 98
     {
99
-        return $this->getPath().'/Resources/config';
99
+        return $this->getPath() . '/Resources/config';
100 100
     }
101 101
 
102 102
     /**
@@ -144,9 +144,9 @@  discard block
 block discarded – undo
144 144
         $type = $this->getNameType();
145 145
         $typeLower = strtolower($type);
146 146
         if (null === $this->extension) {
147
-            $basename = preg_replace('/'.$type.'/', '', $this->getName());
147
+            $basename = preg_replace('/' . $type . '/', '', $this->getName());
148 148
 
149
-            $class = $this->getNamespace().'\\DependencyInjection\\'.$basename.'Extension';
149
+            $class = $this->getNamespace() . '\\DependencyInjection\\' . $basename . 'Extension';
150 150
             if (class_exists($class)) {
151 151
                 $extension = new $class();
152 152
 
Please login to merge, or discard this patch.
src/lib/Zikula/Bundle/CoreBundle/Bundle/Scanner.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -92,6 +92,9 @@  discard block
 block discarded – undo
92 92
         return false;
93 93
     }
94 94
 
95
+    /**
96
+     * @param string $file
97
+     */
95 98
     public function getFileContents($file)
96 99
     {
97 100
         return file_get_contents($file);
@@ -142,6 +145,10 @@  discard block
 block discarded – undo
142 145
         return true;
143 146
     }
144 147
 
148
+    /**
149
+     * @param string $type
150
+     * @param boolean $indexByShortName
151
+     */
145 152
     private function getMetaData($type, $indexByShortName)
146 153
     {
147 154
         $array = [];
Please login to merge, or discard this patch.
src/lib/Zikula/Core/Response/Ajax/AbstractBaseResponse.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
     /**
100 100
      * Generates payload.
101 101
      *
102
-     * @return array
102
+     * @return string
103 103
      */
104 104
     protected function generatePayload()
105 105
     {
Please login to merge, or discard this patch.
src/system/BlocksModule/Entity/BlockEntity.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -277,7 +277,7 @@
 block discarded – undo
277 277
     /**
278 278
      * set the filters for the block
279 279
      *
280
-     * @param array $filter the blocks's filters
280
+     * @param array $filters the blocks's filters
281 281
      */
282 282
     public function setFilters($filters)
283 283
     {
Please login to merge, or discard this patch.
src/system/UsersModule/Entity/UserAttributeEntity.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
     /**
76 76
      * set the user item
77 77
      *
78
-     * @param User $user the user item
78
+     * @param integer $user the user item
79 79
      */
80 80
     public function setUser($user)
81 81
     {
Please login to merge, or discard this patch.
src/system/AdminModule/Helper/UpdateCheckHelper.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -208,7 +208,7 @@
 block discarded – undo
208 208
             if (!$fp) {
209 209
                 return false;
210 210
             } else {
211
-                $out = "GET $path_query? HTTP/1.1\r\n";
211
+                $out = "get $path_query? HTTP/1.1\r\n";
212 212
                 $out .= "User-Agent: $userAgent\r\n";
213 213
                 $out .= "Referer: $ref\r\n";
214 214
                 $out .= "Host: $urlArray[host]\r\n";
Please login to merge, or discard this patch.
src/system/BlocksModule/Tests/Helper/InstallerHelperTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
             ->getMock();
55 55
         $kernel
56 56
             ->method('getModule')
57
-            ->will($this->returnCallback(function ($moduleName) {
57
+            ->will($this->returnCallback(function($moduleName) {
58 58
                 if ($moduleName == 'ExceptionModule') {
59 59
                     // mocks situation where module is not namespaced.
60 60
                     throw new \Exception();
Please login to merge, or discard this patch.