@@ -69,7 +69,7 @@ public function addResource($name, $resource, array $options = [])
69
69
if (empty ($ options ['filename ' ])) {
70
70
$ options ['filename ' ] = null ;
71
71
$ uri = $ stream ->getMetadata ('uri ' );
72
- if (substr ($ uri , 0 , 6 ) !== ' php:// ' ) {
72
+ if (' php:// ' !== substr ($ uri , 0 , 6 )) {
73
73
$ options ['filename ' ] = $ uri ;
74
74
}
75
75
}
@@ -121,7 +121,7 @@ public function build()
121
121
*/
122
122
private function prepareHeaders ($ name , StreamInterface $ stream , $ filename , array &$ headers )
123
123
{
124
- $ hasFilename = $ filename === ' 0 ' || $ filename ;
124
+ $ hasFilename = ' 0 ' === $ filename || $ filename ;
125
125
126
126
// Set a default content-disposition header if one was not provided
127
127
if (!$ this ->hasHeader ($ headers , 'content-disposition ' )) {
@@ -190,7 +190,7 @@ private function hasHeader(array $headers, $key)
190
190
*/
191
191
public function getBoundary ()
192
192
{
193
- if ($ this -> boundary === null ) {
193
+ if (null === $ this -> boundary ) {
194
194
$ this ->boundary = uniqid ('' , true );
195
195
}
196
196
@@ -214,7 +214,7 @@ public function setBoundary($boundary)
214
214
*/
215
215
private function getMimetypeHelper ()
216
216
{
217
- if ($ this -> mimetypeHelper === null ) {
217
+ if (null === $ this -> mimetypeHelper ) {
218
218
$ this ->mimetypeHelper = new ApacheMimetypeHelper ();
219
219
}
220
220
0 commit comments