Passed
Pull Request — master (#119)
by
unknown
09:13
created
Classes/Controller/CalendarController.php 1 patch
Upper-Lower-Casing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 
64 64
         // Load current document.
65 65
         $this->loadDocument($this->requestData);
66
-        if ($this->document === null) {
66
+        if ($this->document === NULL) {
67 67
             // Quit without doing anything if required variables are not set.
68 68
             return '';
69 69
         }
@@ -78,10 +78,10 @@  discard block
 block discarded – undo
78 78
         switch ($type) {
79 79
             case 'newspaper':
80 80
             case 'ephemera':
81
-                $this->forward('years', null, null, $this->requestData);
81
+                $this->forward('years', NULL, NULL, $this->requestData);
82 82
                 break;
83 83
             case 'year':
84
-                $this->forward('calendar', null, null, $this->requestData);
84
+                $this->forward('calendar', NULL, NULL, $this->requestData);
85 85
                 break;
86 86
             case 'issue':
87 87
             default:
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 
111 111
         // Load current document.
112 112
         $this->loadDocument($this->requestData);
113
-        if ($this->document === null) {
113
+        if ($this->document === NULL) {
114 114
             // Quit without doing anything if required variables are not set.
115 115
             return '';
116 116
         }
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
                     foreach ($month['children'] as $day) {
129 129
                         foreach ($day['children'] as $issue) {
130 130
                             $title = $issue['label'] ?: $issue['orderlabel'];
131
-                            if (strtotime($title) !== false) {
131
+                            if (strtotime($title) !== FALSE) {
132 132
                                 $title = strftime('%x', strtotime($title));
133 133
                             }
134 134
 
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
                     $title = $document->getTitle();
150 150
                 } else {
151 151
                     $title = !empty($document->getMetsLabel()) ? $document->getMetsLabel() : $document->getMetsOrderlabel();
152
-                    if (strtotime($title) !== false) {
152
+                    if (strtotime($title) !== FALSE) {
153 153
                         $title = strftime('%x', strtotime($title));
154 154
                     }
155 155
                 }
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
         $calendarIssuesByYear = [];
166 166
         foreach ($issues as $issue) {
167 167
             $dateTimestamp = strtotime($issue['year']);
168
-            if ($dateTimestamp !== false) {
168
+            if ($dateTimestamp !== FALSE) {
169 169
                 $_year = date('Y', $dateTimestamp);
170 170
                 $_month = date('n', $dateTimestamp);
171 171
                 $_day = date('j', $dateTimestamp);
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
 
240 240
         // Load current document.
241 241
         $this->loadDocument($this->requestData);
242
-        if ($this->document === null) {
242
+        if ($this->document === NULL) {
243 243
             // Quit without doing anything if required variables are not set.
244 244
             return '';
245 245
         }
Please login to merge, or discard this patch.