Completed
Push — master ( a7da70...6830ea )
by Patrick
06:14 queued 04:04
created
Auth/LDAPCachableObject.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
      *
44 44
      * @param string $fieldName The name of the field to retrieve
45 45
      *
46
-     * @return mixed string the value of the field
46
+     * @return string string the value of the field
47 47
      */
48 48
     protected function getFieldSingleValue($fieldName)
49 49
     {
Please login to merge, or discard this patch.
Auth/User.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -311,7 +311,7 @@
 block discarded – undo
311 311
      *
312 312
      * @param stdClass $data The user's new data
313 313
      *
314
-     * @return boolean true if the user's data was changed, false otherwise
314
+     * @return boolean|null true if the user's data was changed, false otherwise
315 315
      */
316 316
     public function editUser($data)
317 317
     {
Please login to merge, or discard this patch.
AuthProvider.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -253,10 +253,10 @@
 block discarded – undo
253 253
      * Get an array of Auth\PendingUser from a filtered set
254 254
      *
255 255
      * @param Data\Filter|boolean $filter The filter conditions or false to retreive all
256
-     * @param array|boolean $select The user fields to obtain or false to obtain all
257
-     * @param integer|boolean $top The number of users to obtain or false to obtain all
258
-     * @param integer|boolean $skip The number of users to skip or false to skip none
259
-     * @param array|boolean $orderby The field to sort by and the method to sort or false to not sort
256
+     * @param boolean $select The user fields to obtain or false to obtain all
257
+     * @param boolean $top The number of users to obtain or false to obtain all
258
+     * @param boolean $skip The number of users to skip or false to skip none
259
+     * @param boolean $orderby The field to sort by and the method to sort or false to not sort
260 260
      * @param string|boolean $methodName The AuthMethod if information is desired only from a particular Auth\Authenticator
261 261
      *
262 262
      * @return array|boolean An array of Auth\PendingUser objects or false if no pending users were found
Please login to merge, or discard this patch.
Data/FilterClause.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@
 block discarded – undo
176 176
      * Convert the right hand side of the filter clause into an Mongo array
177 177
      *
178 178
      * @param string $op The standard operator
179
-     * @param string $var The second variable in the operator
179
+     * @param string $var2 The second variable in the operator
180 180
      *
181 181
      * @return array An array of mongo operations
182 182
      */
Please login to merge, or discard this patch.
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -140,9 +140,9 @@  discard block
 block discarded – undo
140 140
             $case = true;
141 141
         }
142 142
         if($case)
143
-	{
143
+    {
144 144
             if(class_exists('MongoRegex'))
145
-	    {
145
+        {
146 146
                 return array($field=>array('$regex'=>new \MongoRegex('/'.$this->var2.'/i')));
147 147
             }
148 148
             else
@@ -236,15 +236,15 @@  discard block
 block discarded – undo
236 236
         {
237 237
             case '=':
238 238
                 return array($this->var1=>$this->var2);
239
-	    case 'substringof':
240
-		if(class_exists('MongoRegex'))
241
-		{
242
-		    return array($this->var1=>array('$regex'=>new \MongoRegex('/'.$this->var2.'/i')));
243
-		}
244
-		else
245
-		{
239
+        case 'substringof':
240
+        if(class_exists('MongoRegex'))
241
+        {
242
+            return array($this->var1=>array('$regex'=>new \MongoRegex('/'.$this->var2.'/i')));
243
+        }
244
+        else
245
+        {
246 246
                     return array($this->var1=>array('$regex'=>new \MongoDB\BSON\Regex($this->var2, 'i')));
247
-		}
247
+        }
248 248
             case 'indexof':
249 249
                 return $this->getMongoIndexOfOperator();
250 250
             default:
Please login to merge, or discard this patch.
Data/SQLDataSet.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@
 block discarded – undo
150 150
      * @param string $select The colums to read
151 151
      * @param boolean|string $count The number of rows to read
152 152
      * @param boolean|string $skip The number of rows to skip over
153
-     * @param boolean|array $sort The array to sort by or false to not sort
153
+     * @param boolean $sort The array to sort by or false to not sort
154 154
      *
155 155
      * @return false|array An array of all the returned records
156 156
      */
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -248,7 +248,7 @@
 block discarded – undo
248 248
         if($stmt === false)
249 249
         {
250 250
             if (php_sapi_name() !== "cli") {
251
-              error_log('DB query failed. '.print_r($this->pdo->errorInfo(), true));
251
+                error_log('DB query failed. '.print_r($this->pdo->errorInfo(), true));
252 252
             }
253 253
             return false;
254 254
         }
Please login to merge, or discard this patch.
Http/FlipAdminPage.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -11,6 +11,9 @@
 block discarded – undo
11 11
         $this->setTemplateName('admin.html');
12 12
     }
13 13
 
14
+    /**
15
+     * @param string $adminGroup
16
+     */
14 17
     protected function userIsAdmin($adminGroup)
15 18
     {
16 19
         if($this->user === false || $this->user === null)
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         $this->addLink('Home', '..');
50 50
         if($this->user === false || $this->user === null)
51 51
         {
52
-          $this->content['body'] = '
52
+            $this->content['body'] = '
53 53
             <div id="content">
54 54
               <div class="row">
55 55
                 <div class="col-lg-12">
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         }
62 62
         else if($this->isAdmin() === false)
63 63
         {
64
-          $this->content['body'] = '
64
+            $this->content['body'] = '
65 65
             <div id="content">
66 66
               <div class="row">
67 67
                 <div class="col-lg-12">
@@ -70,8 +70,8 @@  discard block
 block discarded – undo
70 70
               </div>
71 71
             </div>
72 72
           ';
73
-          $this->content['header'] = array();
74
-          $this->content['cards'] = array();
73
+            $this->content['header'] = array();
74
+            $this->content['cards'] = array();
75 75
         }
76 76
         return parent::getContent();
77 77
     }
Please login to merge, or discard this patch.
Http/Rest/DataTableAPI.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     /**
16 16
      * Create the DataTableAPI for the given DataTable info
17 17
      *
18
-     * @param string $datSetName The name of the DataSet used in the Settings
18
+     * @param string $dataSetName The name of the DataSet used in the Settings
19 19
      * @param string $dataTableName The name of the table in the DataSet
20 20
      * @param string|false $primaryKeyName The table primary key. Must be specified for update/delete capable tables
21 21
      */
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         $odata = $request->getAttribute('odata', new \Flipside\ODataParams(array()));
109 109
         $params = $this->manipulateParameters($request, $odata);
110 110
         $areas = $dataTable->read($odata->filter, $odata->select, $odata->top,
111
-                                  $odata->skip, $odata->orderby, $params);
111
+                                    $odata->skip, $odata->orderby, $params);
112 112
         if($areas === false)
113 113
         {
114 114
             $areas = array();
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
         $odata = $request->getAttribute('odata', new \Flipside\ODataParams(array()));
160 160
         $filter = $this->getFilterForPrimaryKey($args['name']);
161 161
         $areas = $dataTable->read($filter, $odata->select, $odata->top,
162
-                                  $odata->skip, $odata->orderby);
162
+                                    $odata->skip, $odata->orderby);
163 163
         if(empty($areas))
164 164
         {
165 165
             return $response->withStatus(404);
Please login to merge, or discard this patch.
Http/Rest/SerializationMiddleware.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -24,6 +24,9 @@
 block discarded – undo
24 24
         }
25 25
     }
26 26
 
27
+    /**
28
+     * @param string $param
29
+     */
27 30
     private function getParamFromArrayIfSet($array, $param, $default = null)
28 31
     {
29 32
         if(isset($array[$param]))
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
             //The underlying API call gave us back a different content type. Just pass that on...
84 84
             return $response;
85 85
         }
86
-	$overrides = $request->getAttribute('serializeOverrides');
86
+    $overrides = $request->getAttribute('serializeOverrides');
87 87
         if($overrides->has($this->format))
88 88
         {
89 89
             return $this->reserializeBody($response, $overrides->get($this->format));
Please login to merge, or discard this patch.
Http/WebPage.php 2 patches
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,6 +78,9 @@  discard block
 block discarded – undo
78 78
         $this->loader->addPath($dir, $namespace);
79 79
     }
80 80
 
81
+    /**
82
+     * @param string $name
83
+     */
81 84
     public function setTemplateName($name)
82 85
     {
83 86
         $this->templateName = $name;
@@ -112,7 +115,6 @@  discard block
 block discarded – undo
112 115
      * Add a JavaScript file from a set of files known to the framework
113 116
      *
114 117
      * @param string $jsFileID the ID of the JS file
115
-     * @param boolean $async Can the JS file be loaded asynchronously?
116 118
      */
117 119
     public function addWellKnownJS($jsFileID)
118 120
     {
Please login to merge, or discard this patch.
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -22,10 +22,10 @@  discard block
 block discarded – undo
22 22
 
23 23
         $twigSettings = array();
24 24
         if(\file_exists('/var/php_cache/twig'))
25
-    	{	
26
-        	$twigCache = $this->settings->getGlobalSetting('twig_cache', '/var/php_cache/twig');
27
-        	$twigSettings['cache'] = $twigCache;
28
-		    //$twigSettings = array('cache' => $twigCache, 'debug' => true);
25
+        {	
26
+            $twigCache = $this->settings->getGlobalSetting('twig_cache', '/var/php_cache/twig');
27
+            $twigSettings['cache'] = $twigCache;
28
+            //$twigSettings = array('cache' => $twigCache, 'debug' => true);
29 29
         }
30 30
         //$twigSettings['debug'] = true;
31 31
 
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
 
53 53
         $this->aboutUrl = $this->settings->getGlobalSetting('about_url', $this->wwwUrl.'/about');
54 54
         $this->content['header']['right']['About'] = array(
55
-          'url' => $this->aboutUrl,
56
-          'menu' => $this->settings->getGlobalSetting('about_menu', array(
55
+            'url' => $this->aboutUrl,
56
+            'menu' => $this->settings->getGlobalSetting('about_menu', array(
57 57
             'Burning Flipside' => $this->wwwUrl.'/about/event',
58 58
             'AAR, LLC' => $this->wwwUrl.'/organization/aar',
59 59
             'Privacy Policy' => $this->wwwUrl.'/about/privacy'
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         $this->content['urls']['loginUrl'] = $this->loginUrl;
70 70
         $this->content['urls']['logoutUrl'] = $this->logoutUrl;
71 71
 
72
-	if($this->user === false || $this->user === null)
72
+    if($this->user === false || $this->user === null)
73 73
         {
74 74
             if(isset($_SERVER['REQUEST_URI']) && strstr($_SERVER['REQUEST_URI'], 'logout.php') === false)
75 75
             {
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
     {
204 204
         if(!isset($this->content['notifications']))
205 205
         {
206
-          $this->content['notifications'] = array();
206
+            $this->content['notifications'] = array();
207 207
         }
208 208
         array_push($this->content['notifications'], array('msg'=>$message, 'sev'=>$severity, 'dismissible'=>$dismissible));
209 209
     }
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
     {
217 217
         if(!isset($this->content['body']))
218 218
         {
219
-          $this->content['body'] = $this->body;
219
+            $this->content['body'] = $this->body;
220 220
         }
221 221
         //Add page JS just before rednering so it is after any added by the page explicitly
222 222
         // $this->addJS('js/'.basename($_SERVER['SCRIPT_NAME'], '.php').'.js');
Please login to merge, or discard this patch.